CN114645639B - Motor torque force adjusting method, intelligent door lock and computer readable storage medium - Google Patents

Motor torque force adjusting method, intelligent door lock and computer readable storage medium Download PDF

Info

Publication number
CN114645639B
CN114645639B CN202011503422.2A CN202011503422A CN114645639B CN 114645639 B CN114645639 B CN 114645639B CN 202011503422 A CN202011503422 A CN 202011503422A CN 114645639 B CN114645639 B CN 114645639B
Authority
CN
China
Prior art keywords
motor torque
motor
door lock
parameter
intelligent door
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.)
Active
Application number
CN202011503422.2A
Other languages
Chinese (zh)
Other versions
CN114645639A (en
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 TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011503422.2A priority Critical patent/CN114645639B/en
Publication of CN114645639A publication Critical patent/CN114645639A/en
Application granted granted Critical
Publication of CN114645639B publication Critical patent/CN114645639B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • E05B49/00Electric permutation locks; Circuits therefor ; Mechanical aspects of electronic locks; Mechanical keys therefor
    • 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
    • E05B2047/0048Circuits, feeding, monitoring
    • E05B2047/0067Monitoring
    • 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
    • E05B2047/0048Circuits, feeding, monitoring
    • E05B2047/0067Monitoring
    • E05B2047/0069Monitoring bolt position
    • 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
    • E05B2047/0072Operation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/72Electric energy management in electromobility

Abstract

The invention discloses a motor torque force adjusting method, an intelligent door lock and a computer readable storage medium, wherein the method comprises the following steps: when door opening or door closing actions are detected, setting motor torque parameters of the intelligent door lock to a preset gear; the driving motor operates, the state of a lock tongue of the intelligent door lock is detected, and when the state of the lock tongue is detected to be not in place, the torque parameter of the motor is adjusted upwards by one gear; when the state of the lock tongue is detected to be in place, the detection times are increased, and whether the detection times reach a preset threshold value is judged; when the detection times reach a preset threshold value and the state of opening or closing the door each time is normal, setting the current motor torque parameter as a target parameter, and adjusting the motor torque by using the target parameter when opening or closing the door again. According to the intelligent door lock, the intelligent door lock is triggered to automatically adapt to and adjust the motor torque parameter in a door opening and closing mode, so that the intelligent door lock works in an optimal motor torque parameter gear, power consumption is saved, and the service life of the intelligent door lock is prolonged.

Description

Motor torque force adjusting method, intelligent door lock and computer readable storage medium
Technical Field
The invention relates to the technical field of intelligent door locks, in particular to a motor torque force adjusting method, an intelligent door lock and a computer readable storage medium.
Background
The intelligent door lock is an improved lock which is different from the traditional mechanical lock and is more intelligent and simplified in the aspects of user safety, identification and manageability. The intelligent door lock is an executive component for locking the door in an access control system. The intelligent door lock is different from the traditional mechanical lock, and is a composite lock with safety, convenience and advanced technology.
In the field of intelligent door locks, the motor is an important core component, and is also a bridge tie for connecting electronic and mechanical components, and is particularly important for fully automatic door locks. The motor torque (motor torque is one of the basic parameters of the motor, also called motor torque, and related to the output power of the motor) also directly affects the use and installation of the door lock, and if the torque is too large, the power consumption and the service life are both affected, and if the torque is too small, the normal unlocking may not be ensured.
In the prior art, in order to ensure that the opening and closing lock of the intelligent door lock is normal, a fixed torsion parameter is given through multiple experimental evaluation, so that the situation of conforming to most intelligent door locks can be ensured, but the defects are that the power consumption is relatively large, the adaptability to some door frames is poor, and if the friction force is large, the motor torsion is insufficient and the door cannot be opened; or, an entrance menu is added in the system of the intelligent door lock, when engineering installation and maintenance are performed, torsion parameter setting can be performed, but when the intelligent door lock is in a defect, engineering personnel are required to manually set and adjust according to actual conditions, whether parameters are proper or not is determined by the engineering personnel, the parameters are possibly not optimal parameters, and meanwhile, higher capability requirements are also provided for an installer.
Accordingly, the prior art is still in need of improvement and development.
Disclosure of Invention
The invention mainly aims to provide a motor torque force adjusting method, an intelligent door lock and a computer readable storage medium, and aims to solve the problem that the motor torque force of the intelligent door lock cannot be automatically adjusted to an optimal parameter in the prior art.
In order to achieve the above object, the present invention provides a motor torque force adjusting method, which includes the steps of:
when door opening or door closing actions are detected, setting motor torque parameters of the intelligent door lock to a preset gear;
driving a motor to run, detecting the state of a lock tongue of the intelligent door lock, and when the state of the lock tongue is detected to be not in place, adjusting the torque parameter of the motor by one gear; when the state of the lock tongue is detected to be in place, the detection times are increased, and whether the detection times reach a preset threshold value is judged;
when the detection times reach a preset threshold value and the state of opening or closing the door each time is normal, setting the current motor torque parameter as a target parameter, and adjusting the motor torque by using the target parameter when opening or closing the door again.
Optionally, in the motor torque adjustment method, when the door opening or closing action is detected, a motor torque parameter of the intelligent door lock is set to a preset gear, which specifically includes:
when the door opening or closing action is detected for the first time, judging whether the motor torque parameter is empty or not;
when the motor torque parameter is detected to be empty, the motor torque parameter is set to a preset gear.
Optionally, in the motor torque force adjusting method, the determining whether the motor torque force parameter is null further includes:
when the motor torque parameter is detected to be not empty, the motor torque is adjusted according to the preset motor torque parameter.
Optionally, in the motor torque adjustment method, the determining whether the test frequency reaches a preset threshold value further includes:
and when the detection times do not reach a preset threshold value, judging whether the current action of the intelligent door lock is a door opening action or not.
Optionally, in the motor torque force adjusting method, the determining whether the current door lock is opened or not further includes:
and when judging that the current finished action of the intelligent door lock is door opening action, controlling the motor to execute door closing action, and continuing to drive the motor to operate until the detection times reach a preset threshold value.
Optionally, in the motor torque force adjusting method, the determining whether the current door lock is opened or not further includes:
and when judging that the current action of the intelligent door lock is a door closing action, controlling the motor to execute a door opening action, and continuing to drive the motor to run until the detection times reach a preset threshold value.
Optionally, in the motor torque force adjusting method, the detecting the state of the locking bolt is specifically detecting a value fed back by a sensor of the locking bolt.
Optionally, in the motor torque force adjusting method, the preset threshold value is in a range of 5-10 times.
In addition, to achieve the above object, the present invention also provides an intelligent door lock, wherein the intelligent door lock includes: the motor torque adjustment device comprises a memory, a processor and a motor torque adjustment program stored on the memory and capable of running on the processor, wherein the motor torque adjustment program realizes the steps of the motor torque adjustment method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium storing a motor torque adjustment program which, when executed by a processor, implements the steps of the motor torque adjustment method as described above.
In the invention, when door opening or closing actions are detected, the motor torque parameter of the intelligent door lock is set to be a preset gear; driving a motor to run, detecting the state of a lock tongue of the intelligent door lock, when the state of the lock tongue is detected to be not in place, adjusting the torque parameter of the motor by one gear, when the state of the lock tongue is detected to be in place, increasing the detection times, and judging whether the detection times reach a preset threshold value or not; when the detection times reach a preset threshold value and the state of opening or closing the door each time is normal, setting the current motor torque parameter as a target parameter, and adjusting the motor torque by using the target parameter when opening or closing the door again. According to the intelligent door lock, the intelligent door lock is triggered to automatically adapt to and adjust the motor torque parameter in a door opening and closing mode, so that the intelligent door lock can work in an optimal motor torque parameter gear, power consumption is saved, and the service life of the intelligent door lock is prolonged.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the motor torque adjustment method of the present invention;
FIG. 2 is a flowchart of step S10 in a preferred embodiment of the motor torque adjustment method of the present invention;
FIG. 3 is a schematic diagram of the whole implementation of the adaptive motor torque parameter in the preferred embodiment of the motor torque adjustment method of the present invention;
fig. 4 is a schematic view of an operating environment of a preferred embodiment of the intelligent door lock of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clear and clear, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The motor torque force adjusting method according to the preferred embodiment of the present invention, as shown in fig. 1, comprises the following steps:
and S10, when door opening or closing actions are detected, setting motor torque parameters of the intelligent door lock to a preset gear.
Referring to fig. 2, a flowchart of step S10 in the motor torque adjustment method according to the present invention is shown.
As shown in fig. 2, the step S10 includes:
s11, when door opening or door closing actions are detected for the first time, judging whether motor torsion parameters are empty or not;
and S12, when the motor torque parameter is detected to be empty, setting the motor torque parameter to a preset gear.
Specifically, after the intelligent door lock is installed (for example, the intelligent door lock of the invention is installed on a door of a user, the intelligent door lock of the invention can be applied to various occasions needing to be installed, and is particularly suitable for occasions where a door is frequently opened and closed), an installer can trigger the intelligent door lock to automatically adapt to the flow of adjusting the torque parameters of a motor in a door opening or closing mode, and the state of a lock tongue can be detected only when the motor is operated during the door opening or closing.
Therefore, after the door opening action or the door closing action is detected for the first time, whether the motor torque parameter of the motor is empty or not is judged (namely, the motor torque parameter is not set at the moment, the aim of adjusting the motor torque is achieved through the motor torque parameter), when the motor torque parameter is detected to be empty at the moment, the motor torque parameter is set to a preset gear, for example, the preset gear is preferably the lowest gear, because the lower the gear of the motor torque parameter is, the lower the power consumption of the intelligent door lock is, the motor torque parameter is set to the lowest gear at the beginning, and when the lowest gear cannot meet the door opening and closing requirement, the gear of the motor torque parameter is gradually adjusted, and a plurality of gears can be preset. Further, when the motor torque parameter is detected to be not empty, the motor torque is adjusted according to the preset motor torque parameter, or the motor is directly operated according to the preset motor torque parameter, namely, the motor torque parameter is already set at the moment, the motor torque parameter is not required to be automatically adapted to be adjusted, namely, the motor torque parameter is used for operation.
The motor generally uses PWM (Pulse Width Modulation, pulse width modulation, which is an analog control method, to modulate the bias of the transistor base or the MOS transistor gate according to the change of the corresponding load, so as to change the on time of the transistor or the MOS transistor, thereby realizing the change of the output of the switching regulated power supply, which can keep the output voltage of the power supply constant when the working condition changes, is a very effective technique for controlling the analog circuit by using the digital signal of the microprocessor, and the pulse width modulation is a very effective technique for controlling the analog circuit by using the digital output of the microprocessor, and is widely used in many fields from measurement, communication to power control and conversion); therefore, the duty ratio of the signal waveform (the duty ratio refers to the proportion of the energizing time to the total time in one pulse cycle) is controlled, and the duty ratio is 100%, so that the power consumption is maximum, and the motor torque is also maximum; if the duty ratio is set to 0, the motor is equivalent to not working, and the power consumption is 0; theoretically, the duty cycle of different motor controls requires reference to a motor manual in combination with door lock design to determine a suitable range; the intelligent door lock manufacturer can divide the intelligent door lock into different gears according to the power consumption and the standby time requirements in the range; for example, common gears are: 50%,60%,70%,80%, etc.
Step S20, driving a motor to run, detecting the state of a lock tongue of the intelligent door lock, and when the state of the lock tongue is detected to be not in place, adjusting the torque parameter of the motor by one gear; when the state of the lock tongue is detected to be in place, the detection times are increased, and whether the detection times reach a preset threshold value is judged.
Specifically, when the motor torque parameter is set to the lowest gear, for example, the lowest gear of the motor torque parameter in the intelligent door lock is 50% (each gear corresponds to a specific motor torque parameter value), then the motor torque parameter is set to 50% at this time, after the lowest gear is determined according to the actual gear of the intelligent door lock, the driving motor starts to work (i.e. the driving motor starts to run), after the motor runs, the state of the lock tongue needs to be detected, wherein the lock tongue is a structure that the lock tongue pops out to be blocked in a hole reserved in the door frame when the door is closed, and the control door cannot be opened.
In the invention, the detection of the state of the lock tongue can be specifically realized by detecting the value fed back by the lock tongue sensor, for example, if the current full-automatic electronic lock body is designed with an in-place sensor (namely, the lock tongue sensor), the detection can be directly carried out according to the value returned by the lock tongue sensor, for example, the lock tongue can be considered in place when the value returned by the lock tongue sensor reaches a preset value (for example, the preset value is set to be 1), namely, the lock tongue is considered in place when the value returned by the lock tongue sensor is 1, or the lock tongue can be considered not in place when the value returned by the lock tongue sensor does not reach the preset value, for example, the lock tongue is considered not in place when the value returned by the lock tongue sensor is 2.
Further, for the intelligent door lock without in-place sensor (namely, a dead bolt sensor), the judgment can be carried out by feeding back a current signal through a motor according to the following principle: when the motor works, normal working current is known, when the motor stretches out and draws back to the right, if the motor is driven to stretch out and draw back continuously, the motor current exceeds the working current, namely the phenomenon of blocking rotation of the motor, whether the motor stretches out and draws back to the right can be judged by detecting the size of the blocking rotation current, and if blocking rotation occurs, the lock tongue is in place; otherwise, the motor is driven continuously, and the door lock circuit is required to increase the locked rotor current detection in the type of design.
According to the above method for detecting the state of the lock tongue, it can be judged whether the state of the lock tongue is in place (i.e. whether the lock tongue can be normally opened or closed), if the state of the lock tongue is not in place (e.g. the lock tongue does not reach a designated position when the lock tongue is closed or the lock tongue does not reach a designated position when the lock tongue is opened), that is, if the state of the lock tongue cannot be normally opened or closed, it is indicated that the motor torque parameter of the lowest gear is insufficient to drive the lock tongue to normally open or close the door, then the motor torque parameter needs to be adjusted, at this time, the motor torque parameter can be adjusted up by one gear, for example, when the lowest gear of the motor torque parameter in the intelligent door lock is 50%, the gear of the motor torque parameter in the intelligent door lock is adjusted up by 60%, after the gear of the motor torque parameter in the intelligent door lock is adjusted up by one gear, the motor is continuously driven, the state of the lock tongue is detected again, if the lock tongue is in place, if the state of the lock tongue is not in place, the state is not reached, the motor torque parameter in the up by one gear is continuously adjusted up to 70%, and the intelligent door lock is circulated until the lock tongue is reached.
In addition, when the state of the lock tongue is detected to be in place (for example, the lock tongue reaches a designated position when the lock is closed or the lock tongue reaches the designated position when the lock is opened), the lock can be normally opened and closed at the moment, and the lock can be driven by the torque force of the current motor to open and close the door, at the moment, although the setting of the torque force parameter of the motor can be represented as the normal opening and closing of the door, the setting of the torque force parameter of the motor can be represented, but the result of one test is only the result, and the authenticity and the reliability of data cannot be represented, so that in order to avoid such contingency, the invention verifies whether the torque force parameter of the current motor really meets the requirement by increasing the detection (test) times (sequentially increasing, each time of the detection) or not, and then after the detection times are increased, whether the detection times reach the preset threshold value needs to be judged.
Further, after the detection times are increased, whether the detection times reach a preset threshold value (for example, 5 times) is required to be judged, when the detection times do not reach the preset threshold value (for example, the detection times are 3 times, then the detection times do not reach 5 times), whether the action of the current end of the door lock is a door opening action is continuously judged, when the action of the current end of the door lock is judged to be a door opening action, the motor is controlled to execute a door closing action (only one switch can carry out complete test), and the motor is continuously driven to operate until the detection times reach the preset threshold value; when the door lock is judged to be in the closing state, the motor is controlled to execute the opening operation (only one switch can be used for complete testing), and the motor is driven to operate continuously until the detection times reach the preset threshold value.
And step S30, when the detection times reach a preset threshold value and the state of opening or closing the door each time is normal, setting the current motor torque parameter as a target parameter, and adjusting the motor torque by using the target parameter when opening or closing the door again.
Specifically, when the detection times reach a preset threshold value (for example, the detection times are 5 times, that is, the requirement of the detection times is met), and each time the door is normally opened or closed (that is, each detection can be completed, the door is normally opened or closed), the current motor torque is set as a target parameter (or called an optimal parameter), and the target parameter is obtained through multiple times of verification, and has reliability and stability; for example, after 5 times of detection, the door can be opened or closed normally, the gear of the current motor torque parameter is 60% (i.e. the motor torque is determined to be a value of 60%) and then the motor torque at that time is set as a target parameter, that is, the intelligent door lock is automatically adapted to select a proper motor torque parameter (i.e. the motor torque which is finally needed to be obtained), then when the door is opened or closed again, the target parameter is used as a default parameter of the motor torque, that is, after the default motor torque parameter is set, the door is opened or closed later, and then the target parameter (i.e. the default parameter) is used for working, thereby completing the automatic adaptation process of the motor parameter of the intelligent door lock.
The intelligent door lock can be divided into two types according to the starting mode of the motor: full-automatic intelligent lock, semi-automatic intelligent lock. The semi-automatic intelligent door lock is a door lock operated by manual operation and a machine device, and the starting of the semi-automatic intelligent door lock is that a motor drives a small clutch, but the door is still opened by manually twisting a handle. The full-automatic intelligent door lock is a mechanical device and the production process of the door lock is fully automated, the intelligent door lock has great requirements on a motor, great torsion is needed to ensure the normal unlocking of the intelligent door lock, the full-automatic intelligent door lock is driven by the motor to operate, the full-automatic intelligent door lock is not influenced by external force, and the intelligent door lock is preferably the full-automatic intelligent door lock.
According to the intelligent door lock, the intelligent door lock is triggered to automatically adapt to and adjust the motor torsion parameter in a door opening and closing mode, so that the intelligent door lock can work in an optimal parameter gear, the motor torsion parameter is automatically optimized, the intelligent door lock is ensured to always work in lower power consumption, the service time of a battery of the intelligent door lock is prolonged, the power consumption is saved, the service life of the intelligent door lock is prolonged, and meanwhile, the installation time of an installer and the capability requirement on the installer are reduced.
Further, as shown in fig. 3, the whole execution process of the torque parameters of the adaptive motor in the invention is as follows:
step S101, starting;
step S102, detecting a door opening action or a door closing action, and executing step S103 after detecting the door opening action or the door closing action;
step S103, judging whether the motor torque parameter is empty at the moment, executing step S105 when the motor torque parameter is empty, and executing step S104 when the motor torque parameter is not empty;
step S104, when the motor torque parameter is detected not to be empty, the motor torque is adjusted according to the preset motor torque parameter, namely, the motor torque parameter is already set at the moment, which means that after the intelligent door lock is installed, the intelligent door lock is not opened or closed for the first time, and then the motor torque parameter is not required to be automatically adapted and adjusted, namely, the motor torque parameter is used for working;
step S105, when the intelligent door lock enters an adaptive motor parameter setting process, that is, when a door opening or closing action is detected for the first time and a motor torque parameter is empty, setting the motor torque parameter to a preset gear (for example, a lowest gear);
step S106, the driving motor starts to work (namely, the driving motor starts to run);
step S107, detecting the state of the lock tongue after the motor runs, wherein the detection of the state of the lock tongue can be specifically implemented by detecting the value fed back by the lock tongue sensor, such as the detection principle described above;
step S108, judging whether the lock tongue is in place (namely, whether the door can be normally opened or closed), if yes, executing step S110, and if not, executing step S109;
step S109, when detecting that the state of the lock tongue is not in place (for example, the lock tongue does not reach a designated position when the door is closed or the lock tongue does not reach the designated position when the door is opened), that is, when the door cannot be opened or closed normally, the motor torque parameter of the lowest gear at the moment is not in accordance with the requirement, then the motor torque parameter needs to be adjusted, at the moment, the motor torque can be adjusted up by one gear (step by step up), and then the step S106 is executed continuously;
step S110, when detecting that the state of the lock tongue is in place (for example, the lock tongue reaches a designated position when closing the door or reaches the designated position when opening the door), the lock tongue can be normally opened and closed at the moment, and whether the torque parameter of the current motor really meets the requirement is verified by increasing the detection times for 1 time (namely, increasing the test times and sequentially increasing the test times and increasing one test time each time) in order to avoid the accidental occurrence of data;
step S111, judging whether the detection times reach a preset threshold value after the detection times are increased, if yes, executing step S115, and if not, executing step S112, wherein the proper range of the preset threshold value is 5-10 times, and the preset threshold value is preferably 5 times in the invention;
step S112, namely when the detection times do not reach the preset threshold value, judging whether the current action of the intelligent door lock is a door opening action, if yes, executing step S113, and if not, executing step S114;
step S113, when judging that the current door lock is closed, controlling the motor to execute the door closing action, and returning to execute step S106, namely continuing to drive the motor to run until the detection times reach a preset threshold value;
step S114, when judging that the current door lock is closed, controlling the motor to execute the door opening action, and returning to execute step S106, namely continuing to drive the motor to run until the detection times reach a preset threshold value;
step S115, when the detection times reach a preset threshold value and the state of opening or closing the door each time is normal, setting the current motor torque parameter as a target parameter, and then using the target parameter to adjust the motor torque when opening or closing the door again, namely after setting a default motor torque parameter, opening or closing the door later, and using the target parameter (such as an optimal parameter) to work, thereby completing the automatic adaptation process of the intelligent door lock motor parameter;
step S116, ends.
The process of automatic adjustment of the motor torque force is shown in the flow, when the door opening or closing action is detected for the first time and the motor torque force parameter is empty, the motor torque force parameter is set to be the lowest gear, if the motor torque force parameter of the lowest gear does not meet the requirement of opening or closing the door (judging according to the state of the lock tongue), the gear of the motor torque force parameter is gradually increased until the adjusted motor torque force parameter meets the requirement of opening or closing the door, the motor torque force parameter at the moment is the default parameter which is finally required to be obtained, the default parameter is finally determined to be the optimal parameter after the default parameter is detected for many times, then the optimal parameter is used as the default parameter of the motor torque force when the door is opened or closed again, and the adjustment of the motor torque force parameter is automatically completed, so that the intelligent door lock can work under the optimal parameter gear, thereby saving the power consumption and prolonging the service life of the intelligent door lock.
Further, as shown in fig. 4, based on the above motor torque force adjustment method, the present invention further provides an intelligent door lock, which includes a processor 10, a memory 20 and a display 30. Fig. 4 shows only some of the components of the intelligent door lock, but it should be understood that not all of the illustrated components are required to be implemented, and more or fewer components may alternatively be implemented.
The memory 20 may in some embodiments be an internal storage unit of the smart door lock, such as a hard disk or a memory of the smart door lock. The memory 20 may also be an external storage device of the Smart door lock in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like. Further, the memory 20 may also include both an internal storage unit and an external storage device of the smart door lock. The memory 20 is used for storing application software installed on the intelligent door lock and various data, such as program codes for installing the intelligent door lock. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a motor torque adjustment program 40, and the motor torque adjustment program 40 is executable by the processor 10 to implement the motor torque adjustment method of the present application.
The processor 10 may in some embodiments be a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chip for executing program code or processing data stored in the memory 20, for example, for performing the motor torque adjustment method, etc.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like in some embodiments. The display 30 is used for displaying information on the intelligent door lock and for displaying a visual user interface. The components 10-30 of the intelligent door lock communicate with each other via a system bus.
In one embodiment, the following steps are implemented when the processor 10 executes the motor torque adjustment program 40 in the memory 20:
when door opening or door closing actions are detected, setting motor torque parameters of the intelligent door lock to a preset gear;
driving a motor to run, detecting the state of a lock tongue of the intelligent door lock, and when the state of the lock tongue is detected to be not in place, adjusting the torque parameter of the motor by one gear; when the state of the lock tongue is detected to be in place, the detection times are increased, and whether the detection times reach a preset threshold value is judged;
when the detection times reach a preset threshold value and the state of opening or closing the door each time is normal, setting the current motor torque parameter as a target parameter, and adjusting the motor torque by using the target parameter when opening or closing the door again.
When door opening or door closing actions are detected, the motor torque parameters of the intelligent door lock are set to be preset gears, and the intelligent door lock specifically comprises:
when the door opening or closing action is detected for the first time, judging whether the motor torque parameter is empty or not;
when the motor torque parameter is detected to be empty, the motor torque parameter is set to a preset gear.
Wherein, judge whether motor torque force parameter is empty, still include afterwards:
when the motor torque parameter is detected to be not empty, the motor torque is adjusted according to the preset motor torque parameter.
Wherein, the judging whether the test times reach the preset threshold value further comprises:
and when the detection times do not reach a preset threshold value, judging whether the current action of the intelligent door lock is a door opening action or not.
Wherein, the judging whether the door lock is currently finished is a door opening action or not, and then further comprises:
and when judging that the current finished action of the intelligent door lock is door opening action, controlling the motor to execute door closing action, and continuing to drive the motor to operate until the detection times reach a preset threshold value.
Wherein, the judging whether the door lock is currently finished is a door opening action or not, and then further comprises:
and when judging that the current action of the intelligent door lock is a door closing action, controlling the motor to execute a door opening action, and continuing to drive the motor to run until the detection times reach a preset threshold value.
The state of the detection lock tongue is specifically a value fed back by a detection lock tongue sensor.
Wherein the range of the preset threshold value is 5-10 times.
The present invention also provides a computer-readable storage medium storing a motor torque adjustment program which, when executed by a processor, implements the steps of the motor torque adjustment method as described above.
In summary, the present invention provides a motor torque force adjusting method, an intelligent door lock and a computer readable storage medium, wherein the method includes: when door opening or door closing actions are detected, setting motor torque parameters of the intelligent door lock to a preset gear; driving a motor to run, detecting the state of a lock tongue of the intelligent door lock, when the state of the lock tongue is detected to be not in place, adjusting the torque parameter of the motor by one gear, when the state of the lock tongue is detected to be in place, increasing the detection times, and judging whether the detection times reach a preset threshold value or not; when the detection times reach a preset threshold value and the state of opening or closing the door each time is normal, setting the current motor torque parameter as a target parameter, and adjusting the motor torque by using the target parameter when opening or closing the door again. According to the intelligent door lock, the intelligent door lock is triggered to automatically adapt to and adjust the motor torque parameter in a door opening and closing mode, so that the intelligent door lock can work in an optimal motor torque parameter gear, power consumption is saved, and the service life of the intelligent door lock is prolonged.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Of course, those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by a computer program for instructing relevant hardware (e.g., processor, controller, etc.), the program may be stored on a computer readable storage medium, and the program may include the above described methods when executed. The computer readable storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited in its application to the examples described above, but is capable of modification and variation in light of the above teachings by those skilled in the art, and that all such modifications and variations are intended to be included within the scope of the appended claims.

Claims (8)

1. A motor torque adjustment method, characterized in that the motor torque adjustment method comprises:
when door opening or door closing actions are detected, setting motor torque parameters of the intelligent door lock to a preset gear;
when door opening or door closing actions are detected, the motor torque parameters of the intelligent door lock are set to be preset gears, and the intelligent door lock specifically comprises:
when the door opening or closing action is detected for the first time, judging whether the motor torque parameter is empty or not;
when the motor torque parameter is detected to be empty, setting the motor torque parameter to a preset gear;
judging whether the motor torque parameter is empty or not, and then further comprising:
when the motor torque parameter is detected to be not empty, adjusting the motor torque according to the preset motor torque parameter;
the driving motor operates, the state of a lock tongue of the intelligent door lock is detected, and when the state of the lock tongue is detected to be not in place, the torque parameter of the motor is adjusted upwards by one gear; when the state of the lock tongue is detected to be in place, the detection times are increased, and whether the detection times reach a preset threshold value is judged;
when the detection times reach a preset threshold value and the state of opening or closing the door each time is normal, setting the current motor torque parameter as a target parameter, and adjusting the motor torque by using the target parameter when opening or closing the door again;
the motor is controlled by a PWM mode and is controlled by the duty ratio of a signal waveform.
2. The motor torque adjustment method according to claim 1, wherein the determining whether the number of tests reaches a preset threshold value further comprises:
and when the detection times do not reach a preset threshold value, judging whether the current action of the intelligent door lock is a door opening action or not.
3. The motor torque adjustment method according to claim 2, wherein the determining whether the current door lock end is a door opening operation further comprises:
and when judging that the current finished action of the intelligent door lock is door opening action, controlling the motor to execute door closing action, and continuing to drive the motor to operate until the detection times reach a preset threshold value.
4. The motor torque adjustment method according to claim 2, wherein the determining whether the current door lock end is a door opening operation further comprises:
and when judging that the current action of the intelligent door lock is a door closing action, controlling the motor to execute a door opening action, and continuing to drive the motor to run until the detection times reach a preset threshold value.
5. The motor torque adjustment method according to claim 1, wherein the detecting the state of the locking bolt is specifically detecting a value fed back by a locking bolt sensor.
6. The motor torque adjustment method according to claim 1, wherein the predetermined threshold value ranges from 5 to 10 times.
7. An intelligent door lock, characterized in that the intelligent door lock comprises: a memory, a processor and a motor torque adjustment program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the motor torque adjustment method of any one of claims 1-6.
8. A computer readable storage medium, characterized in that the computer readable storage medium stores a motor torque adjustment program, which when executed by a processor, implements the steps of the motor torque adjustment method according to any one of claims 1-6.
CN202011503422.2A 2020-12-18 2020-12-18 Motor torque force adjusting method, intelligent door lock and computer readable storage medium Active CN114645639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011503422.2A CN114645639B (en) 2020-12-18 2020-12-18 Motor torque force adjusting method, intelligent door lock and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011503422.2A CN114645639B (en) 2020-12-18 2020-12-18 Motor torque force adjusting method, intelligent door lock and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114645639A CN114645639A (en) 2022-06-21
CN114645639B true CN114645639B (en) 2023-06-27

Family

ID=81991571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011503422.2A Active CN114645639B (en) 2020-12-18 2020-12-18 Motor torque force adjusting method, intelligent door lock and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114645639B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117558077A (en) * 2024-01-10 2024-02-13 深圳市每开创新科技有限公司 Parameter adjustment method of electronic lock, storage medium and terminal device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156013A (en) * 2013-05-13 2014-11-19 南京德朔实业有限公司 Method for controlling torsion force output of DC electric tool
CN109403730A (en) * 2018-12-03 2019-03-01 西安朗通科技发展有限公司 A kind of electronic lock intelligent adaptive drive system and method
JP2020097819A (en) * 2018-12-17 2020-06-25 ナブテスコ株式会社 Door lock device, door lock system, door control device, and door lock device adjusting method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9759004B2 (en) * 2011-09-09 2017-09-12 Nabtesco Corporation Opening and closing apparatus with lock

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156013A (en) * 2013-05-13 2014-11-19 南京德朔实业有限公司 Method for controlling torsion force output of DC electric tool
CN109403730A (en) * 2018-12-03 2019-03-01 西安朗通科技发展有限公司 A kind of electronic lock intelligent adaptive drive system and method
JP2020097819A (en) * 2018-12-17 2020-06-25 ナブテスコ株式会社 Door lock device, door lock system, door control device, and door lock device adjusting method

Also Published As

Publication number Publication date
CN114645639A (en) 2022-06-21

Similar Documents

Publication Publication Date Title
CN114645639B (en) Motor torque force adjusting method, intelligent door lock and computer readable storage medium
US7239097B2 (en) Vehicle-mounted drive control apparatus
US8862371B2 (en) Engine control apparatus
CN201106354Y (en) Clamping-prevent control system
US10815714B2 (en) Opening/closing member driving device
JP4699721B2 (en) The process of initializing the roller shutter
SK283170B6 (en) Process for regulating an automatic door operated by a drive motor
CN102287113A (en) Soft stop control device for power window of automobile
CN105133993A (en) Control system for car window induction type rising
CN102226368A (en) Anti-pinch control method with self-adaptability for electric window
US9856687B2 (en) Vehicle window opening device
CN105063957A (en) Washing machine and anti-pinch control method of electrically-operated door of washing machine
DE102009054107A1 (en) Method for detecting e.g. jamming event of window lifting system of vehicle, involves determining characteristics of closing system by nominal model based on surrounding conditions acting on closing system
KR20070027275A (en) Fan motor driving control method by current sensing
US7791299B2 (en) Process for controlling an electrically driven motor vehicle window
CN101240681A (en) Method for operating a door drive and door drive
US20150354260A1 (en) Method and device for determining the offset of an electric window lift system
CN109209103B (en) Anti-pinch control method and controller for vehicle electric component
CN112578280B (en) Locked rotor testing method of non-inductive motor
CN115909552A (en) Intelligent door lock control method, system and storage medium
JPH10262385A (en) Window switching controller
JP2017226971A (en) Opening/closing member drive unit for vehicle
EP3599327B1 (en) Electric power system applicable to electric door openers
CN101083445A (en) Universal drive device for different fans
RU2763075C1 (en) Kit of retrofitting a standard door lock with the function of an electric closer for mercedes-benz gelandewagencars, and method for its installation and an executive part for it

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
GR01 Patent grant
GR01 Patent grant