Intelligent door lock control method, system and storage medium

Through dynamic learning and coding control, the problem of misjudgment of automatic unlocking and shortened service life of smart door locks is solved, the accuracy and service life of door lock control are improved, and damage caused by motor stalling is avoided.

CN115909552BActive Publication Date: 2024-10-18HUITAILONG DECORATION MATERIAL YUEXIU DIST GUANGZHOU +1

Patent Information

Application Number
CN202211317793.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-26
Publication Date
2024-10-18
Estimated Expiration
2042-10-26

AI Technical Summary

Technical Problem

Existing smart door lock technology has problems with misjudgment and shortened service life during the automatic unlocking process, especially the damage to the reduction gear and high unlocking failure rate due to motor stalling.

Method used

By obtaining preset learning parameters, such as the number of opening and closing of door locks and debugging status, dynamic learning is performed to obtain a stable coding value, and the coding is used to control the motor for switching operations. The motor coding value is adjusted to avoid stalling and achieve precise control.

Benefits of technology

It improves the accuracy and service life of the door lock control, reduces the problem of motor stalling, extends the service life of the door lock, and achieves precise control of the switch lock operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115909552B_ABST
    Figure CN115909552B_ABST
Patent Text Reader

Abstract

The present invention discloses an intelligent door lock control method, system and storage medium, which are applied to the field of door lock control technology, and can effectively improve the accuracy of door lock control and extend the service life of door locks. The method includes: obtaining preset learning parameters; the preset learning parameters include the number of times the door lock is switched on and off and the debugging state; determining that the preset learning parameters meet the preset learning conditions, controlling the door lock to perform dynamic learning to obtain a stable coding value; the stable coding value is the coding value corresponding to the motor rotation angle during the door lock switching operation, and the preset learning conditions include the preset number of switches or the initial debugging state; according to the stable coding value, the motor drive is controlled to perform the door lock switching operation; the door lock is controlled to perform dynamic learning to obtain a stable coding value, including: obtaining the preset coding value; controlling the motor to rotate to the corresponding rotation angle according to the preset coding value; obtaining the current current data of the motor; adjusting the coding value of the motor according to the current current data to obtain a stable coding value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of door lock control technology, and in particular to an intelligent door lock control method, system and storage medium. Background Art

[0002] At present, there are two ways for fully automatic smart locks to achieve automatic unlocking. One is to build the motor into the lock body electronics, and drive the lock tongue through the rotation of the reduction motor to achieve automatic door opening. This method can determine whether the lock is fully opened or closed by triggering the switch through the lock body and lock tongue, and will not cause misjudgment of the switch lock. However, due to the small space inside the lock body, the reduction motor that can be placed is a small motor, so it is difficult to achieve a large torque switch lock. Once the door lock is installed, there is friction resistance with the door frame, which will cause unlocking failure. Another solution is to use a conventional mechanical lock body, put the reduction motor on the handle behind the lock, and then drive the lock tongue through the lock core rotating shaft to achieve automatic door opening. Due to the large space behind the lock handle, the reduction motor can be made larger, and the success rate of unlocking is also higher. However, this method is to judge whether the lock tongue has completed the unlocking process by the motor's stall current, which is prone to misjudgment. In actual applications, there is a certain proportion of misjudgment of unlocking, and if the motor is stalled, the current will exceed the rated current of the motor, causing damage to the reduction gear, resulting in irreversible damage, which also shortens the service life of the door lock. In the related art, there is no good way to achieve accurate opening and closing of the lock and extend the service life of the door lock. Summary of the invention

[0003] In order to solve at least one of the above technical problems, the present invention proposes an intelligent door lock control method, system and storage medium, which can effectively improve the accuracy of door lock control and extend the service life of the door lock.

[0004] On the one hand, an embodiment of the present invention provides a smart door lock control method, comprising the following steps:

[0005] Obtaining preset learning parameters; wherein the preset learning parameters include the number of times the door lock is opened and closed and the debugging state;

[0006] Determine that the preset learning parameters meet the preset learning conditions, control the door lock to perform dynamic learning, and obtain a stable coding value; wherein the stable coding value is a coding value corresponding to the motor rotation angle during the switch operation of the door lock, and the preset learning conditions include a preset number of switches or an initial debugging state;

[0007] Controlling the motor drive to perform door lock switch operation according to the stable coding value;

[0008] The controlling the door lock to perform dynamic learning to obtain a stable coding value includes:

[0009] Get the preset encoding value;

[0010] Control the motor to rotate to a corresponding rotation angle according to the preset coding value;

[0011] Acquiring current data of the motor;

[0012] The encoding value of the motor is adjusted according to the current current data to obtain the stable encoding value.

[0013] According to an embodiment of the present invention, a smart door lock control method has at least the following beneficial effects: this embodiment obtains preset learning parameters, such as the number of times the door lock is switched on and off and the debugging state, and after determining that the preset learning parameters meet the preset learning conditions, such as the number of times the door lock is switched on and off meets the preset number of times or the debugging state is the initial debugging state, controls the door lock to perform dynamic learning, so as to obtain the coding value corresponding to the motor rotation angle during the door lock switching operation, that is, the stable coding value, thereby effectively improving the accuracy of the door lock control and alleviating the abnormal switch lock problem caused by the deformation of the door lock. Further, this embodiment controls the motor drive to perform the door lock switch operation through the stable coding value obtained by dynamic learning, and performs the door lock switch operation in the manner of coding control motor, which effectively alleviates the problem of damage to the reduction gear caused by stalling and prolongs the service life of the door lock. At the same time, by driving the motor according to the motor coding value, it is possible to achieve precise control of the door lock switch lock operation, effectively improving the accuracy of the door lock control. In addition, during the dynamic learning process, this embodiment obtains the current current data of the motor when the motor rotates to the preset coding value, and adjusts the coding value of the motor according to the current current data of the motor, thereby obtaining a stable coding value. This can effectively alleviate the problem of motor stalling and reduce the problem of motor stalling during the switching operation of the door lock, effectively improve the accuracy of door lock control, and extend the service life of the door lock.

[0014] According to some embodiments of the present invention, obtaining a preset coding value includes:

[0015] Determining that the door lock is powered on for the first time for debugging, and obtaining the preset coding value by a locked-rotor current method;

[0016] Alternatively, it is determined that the door lock is not powered on for the first time for debugging, and the stable coding value obtained by the previous dynamic learning is used as the preset coding value.

[0017] According to some embodiments of the present invention, determining that the door lock is powered on for the first time and obtaining the preset coding value by a locked-rotor current method includes:

[0018] Acquiring the current data of the motor;

[0019] Determine that the current current data meets the preset stall current condition, record the encoding value of the motor rotation angle, and obtain an intermediate encoding value;

[0020] Determining that the number of the intermediate code values ​​is greater than a preset number of intermediate values, and constructing a coding database according to the intermediate code values;

[0021] It is determined that the change amount of each intermediate coding value in the coding database is less than a preset change amount, and the preset coding value is obtained.

[0022] According to some embodiments of the present invention, adjusting the encoding value of the motor according to the current current data to obtain the stable encoding value includes:

[0023] Determine the current data relationship between the current data and the previous current data; wherein the previous current data is the current data of the motor acquired at the previous current acquisition moment;

[0024] According to the current data relationship, the preset coding value is adjusted to obtain a current coding value; wherein the adjustment operation includes increasing the preset coding amount or decreasing the preset coding amount;

[0025] Setting a corresponding flag bit according to the adjustment operation; wherein the flag bit includes an increase flag and a decrease flag;

[0026] Constructing a flag record sequence according to the flag bit;

[0027] It is determined that the mark record sequence meets a preset record condition, and the stable code value is obtained according to the current code value.

[0028] According to some embodiments of the present invention, the adjusting operation on the preset coding value according to the current data relationship to obtain the current coding value includes:

[0029] Determining that the current data relationship satisfies a preset stall condition, reducing the preset coding value by a preset coding amount to obtain a current coding value;

[0030] Alternatively, it is determined that the current data relationship does not satisfy the preset stall condition, and the preset coding value is increased by the preset coding amount to obtain the current coding value.

[0031] According to some embodiments of the present invention, determining that the mark record sequence satisfies a preset record condition, and obtaining the stable code value according to the current code value, comprises:

[0032] It is determined that the number of times the increase mark and the decrease mark in the mark record sequence are alternately recorded meets a preset number of alternations, and the stable code value is obtained according to the current code value.

[0033] According to some embodiments of the present invention, controlling the motor drive to perform a door lock switch operation according to the stable code value includes:

[0034] Obtaining a door lock control instruction; wherein the door lock control instruction includes an unlocking operation and a locking operation;

[0035] driving the motor according to the door lock control instruction;

[0036] Acquire the encoding data of the motor in real time through a preset encoder;

[0037] Determine that the error between the encoding data and the stable encoding value is less than a preset error data, and control the motor to stop rotating.

[0038] On the other hand, an embodiment of the present invention further provides an intelligent door lock control system, comprising:

[0039] An acquisition module, used to acquire preset learning condition parameters; wherein the preset learning condition parameters include the number of times the door lock is opened and closed and the initial debugging state;

[0040] A learning module, used to determine that the preset learning parameters meet the preset learning conditions, control the door lock to perform dynamic learning, and obtain a stable coding value; wherein the stable coding value is a coding value corresponding to the motor rotation angle during the switch operation of the door lock, and the preset learning conditions include a preset number of switches or an initial debugging state;

[0041] A control module, used for controlling the motor drive to perform door lock switch operation according to the stable coding value;

[0042] The controlling the door lock to perform dynamic learning to obtain a stable coding value includes:

[0043] Get the preset encoding value;

[0044] Control the motor to rotate to a corresponding rotation angle according to the preset coding value;

[0045] Acquiring current data of the motor;

[0046] The encoding value of the motor is adjusted according to the current current data to obtain the stable encoding value.

[0047] On the other hand, an embodiment of the present invention further provides an intelligent door lock control system, comprising:

[0048] at least one processor;

[0049] at least one memory for storing at least one program;

[0050] When the at least one program is executed by the at least one processor, the at least one processor implements the smart door lock control method as described in the above embodiment.

[0051] On the other hand, an embodiment of the present invention further provides a computer storage medium, which stores a program executable by a processor, and the program executable by the processor is used to implement the smart door lock control method as described in the above embodiment when executed by the processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 is a flow chart of a smart door lock control method provided by an embodiment of the present invention;

[0053] Figure 2 It is a principle block diagram of the intelligent door lock control system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0054] The embodiments described in the embodiments of this application should not be regarded as limitations of this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0055] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0057] At present, there are two ways for fully automatic smart locks to achieve automatic unlocking. One is to build the motor into the lock body electronics, and drive the lock tongue by rotating the reduction motor to achieve automatic door opening. The other is to use a conventional mechanical lock body, put the search motor in the handle behind the lock, and then drive the lock tongue through the lock core rotating shaft to achieve automatic door opening. The first solution can determine whether the door lock is fully opened and closed by triggering the switch of the lock body and lock tongue, and will not cause misjudgment of the switch lock. However, due to the small space inside the lock body, the reduction motor that can be placed is also a small motor, which also makes it difficult to achieve high torque switch lock. Once the door lock is installed, there is friction with the door frame, which will cause unlocking failure. In the second solution, due to the large space of the handle behind the lock, the reduction motor can be made larger, so the success rate of the switch lock is also higher. However, since this method uses the motor's stall current to determine whether the lock tongue has completed the unlocking process, it is easy to make misjudgments, and there is a certain proportion of unlocking misjudgments in actual applications. And because the motor is locked to determine whether the switch lock operation is complete, the current will exceed the rated current of the motor, causing damage to the reduction gear, resulting in irreversible damage, which also shortens the service life of the door lock. There is no good way to achieve accurate control of the door lock and alleviate the problem of shortened door lock life.

[0058] An embodiment of the present invention provides a smart door lock control method, system and storage medium, which can effectively improve the accuracy of door lock control and extend the service life of the door lock. Figure 1 The method of the embodiment of the present invention includes but is not limited to step S110, step S120 and step S130.

[0059] Specifically, the method application process of the embodiment of the present invention includes but is not limited to the following steps:

[0060] S110: Obtaining preset learning parameters, wherein the preset learning parameters include the number of times the door lock is opened and closed and the debugging state.

[0061] S120: Determine that the preset learning parameters meet the preset learning conditions, control the door lock to perform dynamic learning, and obtain a stable coding value. The stable coding value is the coding value corresponding to the motor rotation angle during the door lock opening and closing operation, and the preset learning conditions include the preset opening and closing times or the initial debugging state.

[0062] S130: Control the motor drive to perform door lock switch operation according to the stable coding value.

[0063] Among them, the door lock is controlled to perform dynamic learning to obtain a stable coding value, including but not limited to:

[0064] Get the preset encoding value.

[0065] The motor is controlled to rotate to the corresponding rotation angle according to the preset encoding value.

[0066] Get the current data of the motor.

[0067] The motor's encoding value is adjusted according to the current current data to obtain a stable encoding value.

[0068] During the working process of this specific embodiment, this embodiment first obtains preset learning parameters. Among them, the preset learning parameters include the number of times the door lock is switched on and off and the debugging state. For example, when the door lock is initially powered on, the debugging state of the door lock is the initial debugging state, or the door lock is recorded each time the switch operation is performed to obtain the switch data of the door lock, that is, the number of switches. This embodiment obtains the corresponding preset learning parameters by recording the number of switches and the debugging state of the door lock. Further, when it is determined that the preset learning parameters meet the preset learning conditions, the door lock is controlled to perform dynamic learning. In this embodiment, when it is determined that the number of times the door lock is switched on and off meets the preset number of switches, the door lock is controlled to perform dynamic learning to obtain the encoding value corresponding to the motor rotation angle during the switch operation of the door lock, that is, the stable encoding value. For example, when the number of times the door lock is switched on and off reaches 200 times, the door lock is controlled to perform dynamic learning once, so that the stable encoding value can adapt to the changes of the door lock through dynamic learning, such as deformation caused by long use time, etc., effectively improving the accuracy of door lock control. Alternatively, when it is determined that the door lock is in the initial debugging state, the door lock is controlled to perform dynamic learning to obtain the stable coding value corresponding to the motor rotation angle during the door lock switch operation, so as to autonomously obtain the stable coding value of the door lock through dynamic learning, thereby simplifying the door lock setting process. Then, the present embodiment controls the motor drive to perform the door lock switch operation according to the stable coding value. After receiving the switch operation control instruction of the door lock, the angle corresponding to the motor rotation value is controlled according to the stable coding value obtained by dynamic learning, so as to realize the switch operation of the door lock, and the control accuracy of the door lock motor is effectively improved by controlling the door lock motor through the motor encoder, and the control closed loop formed between the motor, the motor encoder and the door lock controller can realize high-precision motor control, which alleviates the problem that the conventional mechanical lock body does not have accurate feedback in the switch lock process through the stall current judgment, resulting in the failure of the switch lock. Specifically, in the process of dynamic learning, the present embodiment first obtains a preset coding value, which is the coding value corresponding to the rotation angle required for the switch lock operation motor initially set. Then, the present embodiment controls the motor to rotate to the corresponding rotation angle according to the preset coding value. At the same time, the present embodiment obtains the current current data of the motor. After the motor is controlled to rotate to the corresponding rotation angle according to the preset code value, the present embodiment obtains the current current data of the motor through the original stall current detection circuit. Then, the code value of the motor is adjusted according to the current current data of the motor to obtain a stable code value. For example, whether the currently set motor code value will generate a stall current is analyzed according to the current current data of the motor, so as to adjust the set motor code value to obtain a stable code value. The present embodiment adjusts the code value of the motor by obtaining the current data after the motor rotates to the corresponding rotation angle of the preset code value, thereby realizing dynamic learning of the stable code value, adapting to the changes of the door lock, effectively improving the accuracy of the door lock control, and alleviating the problem of door lock damage caused by motor stalling, thereby extending the service life of the door lock.

[0069] In some embodiments of the present invention, obtaining a preset coding value includes, but is not limited to:

[0070] Make sure the door lock is powered on for the first time and obtain the preset coding value through the locked-rotor current method.

[0071] Alternatively, it is determined that the door lock is not powered on for the first time for debugging, and the stable coding value obtained by the previous dynamic learning is used as the preset coding value.

[0072] In this specific embodiment, when the door lock is powered on for the first time, the preset coding value is obtained by the locked-rotor current method. At the same time, when the door lock is not powered on for the first time, the stable coding value obtained by the previous dynamic learning is used as the preset coding value. Specifically, when the door lock is powered on for the first time, the embodiment determines the switch lock operation of the door lock by the locked-rotor current method, and records the coding data corresponding to the switch lock operation, thereby obtaining the preset coding value. When the door lock is not powered on for the first time, the embodiment uses the stable coding value obtained by the previous dynamic learning as the preset coding value for this dynamic learning, so as to realize adaptive door lock control through dynamic learning and improve the accuracy of door lock control.

[0073] In some embodiments of the present invention, it is determined that the door lock is powered on for the first time and the preset code value is obtained by the locked-rotor current method, including but not limited to:

[0074] Get the current data of the motor.

[0075] Determine whether the current data meets the preset stall current condition, record the encoding value of the motor rotation angle, and obtain the intermediate encoding value.

[0076] It is determined that the number of intermediate coding values ​​is greater than the preset number of intermediate values, and a coding database is constructed according to the intermediate coding values.

[0077] It is determined that the change amount of each intermediate coding value in the coding database is less than the preset change amount, and the preset coding value is obtained.

[0078] In this specific embodiment, when the door lock is powered on for the first time for debugging, this embodiment obtains the preset coding value through the stall current method. Specifically, this embodiment first obtains the current current data of the motor. When it is determined that the current current data meets the preset current condition, the coding value of the motor rotation angle is recorded to obtain the intermediate coding value. Further, when the number of intermediate coding values ​​is greater than the preset number of intermediate values, this embodiment constructs a coding database based on the intermediate coding values. When the change in each intermediate coding value in the coding database is less than the preset change, the preset coding value is obtained. Exemplarily, when the door lock is powered on for the first time, this embodiment drives the motor to perform the switch lock operation and obtains the current data of the motor, that is, the current current data. When it is determined that the current data meets the preset stall current condition, it is considered that the switch lock operation of the door lock is completed, the motor is controlled to stop and the coding value corresponding to the current motor rotation angle is recorded, and the coding value is recorded as an intermediate coding value. Repeat the above process to obtain several intermediate coding values. When it is determined that the number of intermediate code values ​​is greater than the preset number of intermediate values, this embodiment constructs a code database based on the intermediate code values ​​obtained. For example, when 20 switch lock operations are performed and 20 intermediate code values ​​are obtained, this embodiment constructs a code database based on these 20 intermediate code values. Further, this embodiment analyzes the changes between the intermediate code values ​​in the code database, and obtains the preset code value after determining that the change amount of each intermediate code value is less than the preset change amount. For example, when the change value of the intermediate code value is less than 1%, it is considered that the current switch lock operation of the door lock is stable, thereby obtaining the preset code value. It is easy to understand that in some embodiments of the present invention, the preset code value can be obtained by averaging the intermediate code values ​​in the code database. This embodiment obtains the preset code value by obtaining the motor code value of multiple stable unlockings, which effectively alleviates the interference problem caused by the factors on the code data during the installation and debugging process, making the obtained preset code value more stable and accurate.

[0079] In some embodiments of the present invention, the encoder value of the motor is adjusted according to the current current data to obtain a stable encoder value, including but not limited to:

[0080] Determine the current data relationship between the current data and the previous current data, wherein the previous current data is the current data of the motor obtained at the previous current acquisition moment.

[0081] The preset coding value is adjusted according to the current data relationship to obtain the current coding value, wherein the adjustment operation includes increasing the preset coding amount or decreasing the preset coding amount.

[0082] The corresponding flag bit is set according to the adjustment operation, wherein the flag bit includes an increase flag and a decrease flag.

[0083] Construct a sequence of flag records based on the flag bits.

[0084] It is determined that the mark record sequence meets the preset record conditions, and a stable code value is obtained according to the current code value.

[0085] In this specific embodiment, this embodiment first determines the current data relationship between the current current data and the previous current data, and then performs an adjustment operation on the preset code value according to the current data to obtain the current code value. At the same time, the corresponding flag bit is set according to the adjustment operation, and a flag record sequence is constructed according to the flag bit. When it is determined that the flag record sequence meets the preset recording condition, this embodiment obtains a stable code value according to the current code value. Specifically, the previous current data is the current data of the motor obtained at the previous current acquisition moment. This embodiment obtains the relationship of the current data by obtaining the current current data of the motor and comparing it with the current data of the motor obtained at the previous current acquisition moment. Such as whether a stall current occurs. Further, the adjustment operation performed on the preset code value according to the current data relationship includes increasing the preset code amount and reducing the preset code amount. This embodiment determines whether the preset code value needs to increase or decrease the code amount according to the current data relationship, and then performs a corresponding adjustment operation on the preset code value to obtain the current code value. At the same time, this embodiment records the corresponding flag bit according to the adjustment operation performed, for example, when the adjustment operation is to increase the preset code amount, the flag bit is set to an increase flag, and when the adjustment operation is to reduce the preset code amount, the flag bit is set to a decrease flag. Furthermore, the present embodiment constructs a flag record sequence according to the flag bits. For example, the present embodiment constructs a flag record sequence according to the recorded flag bits by arranging them in order. When it is determined that the flag record sequence meets the preset recording conditions, a stable code value is obtained according to the current code value. Exemplarily, when the increase and decrease signs appear alternately in the recorded flag record sequence, the current code value of the motor has stabilized and meets the requirements of accurate switch lock operation. The present embodiment obtains an average code value according to the current code value.

[0086] In some embodiments of the present invention, the preset coding value is adjusted according to the current data relationship to obtain the current coding value, including but not limited to:

[0087] It is determined that the current data relationship meets the preset stall condition, and the preset coding value is reduced by a preset coding amount to obtain a current coding value.

[0088] Alternatively, it is determined that the current data relationship does not satisfy the preset stall condition, and the preset coding value is increased by a preset coding amount to obtain a current coding value.

[0089] In this specific embodiment, this embodiment performs corresponding adjustment operations according to the preset coding value of whether the current data relationship meets the preset stalling condition. Specifically, this embodiment first determines whether the current data relationship meets the preset stalling condition, that is, whether the current of the motor has a stalling current. When it is determined that the current data relationship meets the preset stalling condition, that is, the current current of the motor has a stalling current, it means that the angle of rotation of the motor is too large and the rotation angle needs to be reduced. Therefore, this embodiment reduces the preset coding value by a preset coding amount to obtain the current coding value. When the current data relationship does not meet the preset stalling condition, the motor rotation angle may not meet the requirements of the door lock switch lock operation, and the rotation angle needs to be increased. This embodiment increases the preset coding value by a preset coding amount to obtain the current coding value. Exemplarily, after the present embodiment drives the motor to rotate to the corresponding rotation angle of the preset coding value X, the motor is controlled to stop rotating and the current current of the motor is detected, that is, the current current data of the motor is obtained. The current current data of the motor is compared with the current data of the motor obtained at the previous current acquisition moment to obtain the current data relationship, such as the current change trend of the motor. Then, this embodiment determines whether the motor current is stalled and increased according to the current data relationship. When it is determined that the motor current is locked and increased, the preset code value X is reduced by 1, and when it is determined that the motor current is not locked and increased, the preset code value X is increased by 1, thereby obtaining a new code value, that is, the current code value. Then, this embodiment repeats the above operation, drives the motor to rotate to a new code value, that is, the current code value, and then re-analyzes and determines the corresponding current code value based on the current data relationship.

[0090] In some embodiments of the present invention, determining that the marker record sequence meets the preset record condition and obtaining a stable code value according to the current code value include but are not limited to:

[0091] It is determined that the number of alternating records of the increase mark and the decrease mark in the mark record sequence meets the preset alternation number, and a stable code value is obtained according to the current code value.

[0092] In this specific embodiment, this embodiment determines to obtain a stable coding value by analyzing the situation of alternating recording of increase and decrease signs in the sign recording sequence. Specifically, this embodiment analyzes the number of times that the increase and decrease signs appear alternately recorded in the sign recording sequence. When the number of times that the increase and decrease signs are alternately recorded meets the preset number of alternations, it is considered that the current coding value tends to be stable, so as to obtain a stable coding value according to the current coding value. Exemplarily, the set flag bits are sorted according to the time sequence of the records in the sign recording sequence. When the number of times that the increase and decrease signs are alternately recorded in the sign sequence is greater than 10 times, the coding value of the current motor tends to be stable. For example, the flag bit recorded at the first moment is an increase flag, the flag bit recorded at the second moment is a decrease flag, the flag bit recorded at the third moment is an increase flag, and the flag bit recorded at the fourth moment is a decrease flag, and so on. When the number of times that the increase and decrease signs are alternately recorded is greater than 10 times, a stable coding value is obtained according to the current coding value. It is easy to understand that in order to alleviate the damage of the reduction gear caused by the motor stall, the present embodiment uses the current code value that does not perform the operation of increasing the preset code amount in the preset alternating number record or the current code value that performs the operation of reducing the preset code amount as a stable code value. For example, when the current code value of the motor is Y, and the motor current does not stall and increase, the operation of increasing the preset code amount is performed, and the current code value is Y+1, and the increase mark is recorded. When the motor is controlled to drive to the rotation angle corresponding to the current code value Y+1, the detected motor current is stalled and increased, and the operation of reducing the preset code amount is performed, and the current code value is Y, and the reduction mark is recorded. When the number of times the increase mark and the reduction mark are recorded alternately is greater than ten times, the present embodiment uses the current code value that does not perform the operation of increasing the preset code amount in the preset alternating number record or the current code value that performs the operation of reducing the preset code amount as a stable code value, that is, Y is used as a stable code value.

[0093] In some embodiments of the present invention, the motor drive is controlled according to the stable code value to perform the door lock switch operation, including but not limited to:

[0094] Get the door lock control command, which includes unlocking and locking operations.

[0095] The motor is driven according to a door lock control instruction.

[0096] The motor encoding data is obtained in real time through the preset encoder.

[0097] Determine that the error between the encoding data and the stable encoding value is less than the preset error data, and control the motor to stop rotating.

[0098] In this specific embodiment, this embodiment first obtains the door lock control instruction, and determines the motor according to the door lock control instruction to perform the corresponding door lock control operation. Among them, the door lock control instruction includes an unlocking operation and a locking operation. Further, this implementation obtains the encoding data of the motor in real time through a preset encoder, and when it is determined that the error between the encoding data and the stable encoding value is less than the preset error data, the motor is controlled to stop rotating to complete the corresponding door lock control. Specifically, this embodiment monitors the rotation angle of the motor in real time through a preset encoder. When a door lock control instruction, such as an unlocking operation or a locking operation, is obtained, this embodiment drives the motor to work according to the door lock control instruction. At the same time, this embodiment obtains the encoding data of the motor in real time to realize the detection of the rotation angle of the motor. When the error between the detected encoding data and the stable encoding value is less than the preset error data, that is, the motor rotates to the target angle, this embodiment controls the motor to stop rotating, and at this time completes the corresponding start operation or locking operation, thereby realizing accurate control of the door lock. Through the control closed loop formed between the motor, the preset encoder and the door lock controller, the accuracy of the door lock control is effectively improved, and the failure of the switch lock operation is reduced.

[0099] An embodiment of the present invention further provides an intelligent door lock control system, comprising:

[0100] The acquisition module is used to acquire preset learning condition parameters, wherein the preset learning condition parameters include the number of times the door lock is opened and closed and the initial debugging state.

[0101] The learning module is used to determine whether the preset learning parameters meet the preset learning conditions, control the door lock to perform dynamic learning, and obtain a stable coding value. The stable coding value is the coding value corresponding to the motor rotation angle during the door lock's switch operation, and the preset learning conditions include the preset switch times or the initial debugging state.

[0102] The control module is used to control the motor drive to perform door lock switch operation according to the stable coding value.

[0103] Among them, the door lock is controlled to perform dynamic learning to obtain a stable coding value, including:

[0104] Get the preset encoding value.

[0105] The motor is controlled to rotate to the corresponding rotation angle according to the preset encoding value.

[0106] Get the current data of the motor.

[0107] The motor's encoding value is adjusted according to the current current data to obtain a stable encoding value.

[0108] Reference Figure 2 An embodiment of the present invention further provides an intelligent door lock control system, comprising:

[0109] At least one processor 210 .

[0110] At least one memory 220 is used to store at least one program.

[0111] When at least one program is executed by at least one processor 210, at least one processor 210 implements the smart door lock control method described in the above embodiment.

[0112] An embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions. The computer-executable instructions are executed by one or more control processors, for example, to execute the steps described in the above embodiment.

[0113] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0114] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.

Claims

1. A smart door lock control method, It is characterized in that The following steps are involved: Obtaining preset learning parameters; wherein the preset learning parameters include the number of times the door lock is opened and closed and the debugging state; Determine that the preset learning parameters meet the preset learning conditions, control the door lock to perform dynamic learning, and obtain a stable coding value; wherein the stable coding value is a coding value corresponding to the motor rotation angle during the switch operation of the door lock, and the preset learning conditions include a preset number of switches or an initial debugging state; Controlling the motor drive to perform door lock switch operation according to the stable coding value; The controlling the door lock to perform dynamic learning to obtain a stable coding value includes: Get the preset encoding value; Control the motor to rotate to a corresponding rotation angle according to the preset coding value; Acquiring current data of the motor; Adjusting the encoding value of the motor according to the current current data to obtain the stable encoding value; Wherein, adjusting the encoding value of the motor according to the current current data to obtain the stable encoding value includes: Determine the current data relationship between the current data and the previous current data; wherein the previous current data is the current data of the motor acquired at the previous current acquisition moment; According to the current data relationship, the preset coding value is adjusted to obtain a current coding value; wherein the adjustment operation includes increasing the preset coding amount or decreasing the preset coding amount; Setting a corresponding flag bit according to the adjustment operation; wherein the flag bit includes an increase flag and a decrease flag; Constructing a flag record sequence according to the flag bit; It is determined that the mark record sequence meets a preset record condition, and the stable code value is obtained according to the current code value.

2. The smart door lock control method according to claim 1, It is characterized in that The obtaining of the preset coding value comprises: Determining that the door lock is powered on for the first time for debugging, and obtaining the preset coding value by a locked-rotor current method; Alternatively, it is determined that the door lock is not powered on for the first time for debugging, and the stable coding value obtained by the previous dynamic learning is used as the preset coding value.

3. The smart door lock control method according to claim 2, It is characterized in that The step of determining that the door lock is powered on for the first time and obtaining the preset coding value by a locked-rotor current method includes: Acquiring the current data of the motor; Determine that the current current data meets the preset stall current condition, record the encoding value of the motor rotation angle, and obtain an intermediate encoding value; Determining that the number of the intermediate code values ​​is greater than a preset number of intermediate values, and constructing a coding database according to the intermediate code values; It is determined that the change amount of each intermediate coding value in the coding database is less than a preset change amount, and the preset coding value is obtained.

4. The smart door lock control method according to claim 1, It is characterized in that The adjusting operation on the preset coding value according to the current data relationship to obtain the current coding value includes: Determining that the current data relationship satisfies a preset stall condition, reducing the preset coding value by a preset coding amount to obtain a current coding value; Alternatively, it is determined that the current data relationship does not satisfy the preset stall condition, and the preset coding value is increased by the preset coding amount to obtain the current coding value.

5. The smart door lock control method according to claim 1, It is characterized in that The step of determining that the mark record sequence satisfies a preset record condition and obtaining the stable code value according to the current code value includes: It is determined that the number of times the increase mark and the decrease mark in the mark record sequence are alternately recorded meets a preset number of alternations, and the stable code value is obtained according to the current code value.

6. The smart door lock control method according to claim 1, It is characterized in that The method of controlling the motor drive to perform door lock switch operation according to the stable coding value includes: Obtaining a door lock control instruction; wherein the door lock control instruction includes an unlocking operation and a locking operation; driving the motor according to the door lock control instruction; Acquire the encoding data of the motor in real time through a preset encoder; Determine that the error between the encoding data and the stable encoding value is less than a preset error data, and control the motor to stop rotating.

7. An intelligent door lock control system, It is characterized in that include: An acquisition module, used to acquire preset learning condition parameters; wherein the preset learning condition parameters include the number of times the door lock is opened and closed and the initial debugging state; A learning module, used to determine that the preset learning parameters meet the preset learning conditions, control the door lock to perform dynamic learning, and obtain a stable coding value; wherein the stable coding value is a coding value corresponding to the motor rotation angle during the switch operation of the door lock, and the preset learning conditions include a preset number of switches or an initial debugging state; A control module, used for controlling the motor drive to perform door lock switch operation according to the stable coding value; The controlling the door lock to perform dynamic learning to obtain a stable coding value includes: Get the preset encoding value; Control the motor to rotate to a corresponding rotation angle according to the preset coding value; Acquiring current data of the motor; Adjusting the encoding value of the motor according to the current current data to obtain the stable encoding value; Wherein, adjusting the encoding value of the motor according to the current current data to obtain the stable encoding value includes: Determine the current data relationship between the current data and the previous current data; wherein the previous current data is the current data of the motor acquired at the previous current acquisition moment; According to the current data relationship, the preset coding value is adjusted to obtain a current coding value; wherein the adjustment operation includes increasing the preset coding amount or decreasing the preset coding amount; Setting a corresponding flag bit according to the adjustment operation; wherein the flag bit includes an increase flag and a decrease flag; Constructing a flag record sequence according to the flag bit; It is determined that the mark record sequence meets a preset record condition, and the stable code value is obtained according to the current code value.

8. An intelligent door lock control system, It is characterized in that include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the smart door lock control method as described in any one of claims 1 to 6.

9. A computer storage medium having stored therein a program executable by a processor, It is characterized in that The program executable by the processor is used to implement the smart door lock control method as described in any one of claims 1 to 6 when executed by the processor.

Citation Information

Patent Citations

  • Power line carrier communication method and information transmitting device

    CN104218975A

  • Gate apparatus, method of adjusting alignment of barrier parts, apparatus and controller

    CN109098116A

Cited By

  • Motor control method and device based on AI learning, intelligent door lock and medium

    CN120016909A