A method and device for detecting abnormality of smart lock motor and lock body

By recording and analyzing the lock body's action duration and current slope, the motor output current is limited, solving the problem of inaccurate abnormal detection of the motor lock body in smart locks, avoiding motor damage, and achieving accurate detection and safety protection.

CN116065889BActive Publication Date: 2025-09-23HUITAILONG DECORATION MATERIAL YUEXIU DIST GUANGZHOU +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310001241.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-03
Publication Date
2025-09-23
Estimated Expiration
2043-01-03

AI Technical Summary

Technical Problem

When existing smart locks detect abnormalities in the motor lock body, they can easily cause excessive current to damage the motor, and the detection is not accurate enough.

Method used

By recording the duration of the lock body's movement from motor start-up to stalling, the average and shortest durations are calculated. If the movement duration is abnormal, additional power is supplied and the current slope is collected to limit the motor output current within the limit range. The current changes are analyzed in conjunction with the cloud and the diagnostic results are sent.

Benefits of technology

It achieves accurate detection of motor lock body abnormalities, avoids damage to the motor due to excessive current, and improves the accuracy and safety of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116065889B_ABST
    Figure CN116065889B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for detecting abnormalities in the lock body of a smart lock motor, the method comprising: recording the first action duration of the lock body from motor start-up to stalling; if the second action duration of the lock body from motor start-up to stalling recorded in the history reaches a first set number, determining its average duration and the shortest duration; if the first action duration is less than the set normal action duration, supplying additional power to the motor for the set power supply duration; obtaining a sampled current value of the motor current collected at a set frequency, the collection time being from motor start-up to the end of the power supply duration; determining the slope between two adjacent sampled current values ​​with respect to the sampling time; if there is a second set number of consecutive slopes greater than the preset slope, limiting the maximum output current of the motor to within the range of the set limit current. The present invention can accurately detect whether the lock body is abnormal based on the lock body action duration and the current change slope, thereby avoiding damage to the motor due to excessive current, and can be widely used in the field of smart door locks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart door locks, and in particular to a method and device for detecting abnormalities in a smart lock motor and lock body. Background Art

[0002] Existing fully automatic smart locks use a circuit board on the lock end to supply current to the motor through a motor starter chip. Under normal circumstances, the current is generally in the range of 300-800 mA when the motor is idling or rotating with the lock body. When the lock body has completed its rotation, the motor can no longer drive the lock body, causing the motor to become stalled. The current will rise rapidly, generally reaching 5-8A, and the lock end will then deem the lock unlocked or locked and shut down the motor. However, existing solutions generally stop the motor upon detecting a lock body stall, or delay the motor for a certain period of time before stopping the motor. During this delay, the current may continue to rise, damaging the motor.

[0003] Therefore, a smart lock motor lock body abnormality detection solution is needed to accurately detect abnormal conditions of the motor lock body while avoiding excessive current damaging the motor. Summary of the Invention

[0004] In view of this, an embodiment of the present invention provides a method and device for detecting abnormalities in the motor lock body of a smart lock, which can accurately detect abnormalities in the motor lock body while avoiding damage to the motor due to excessive current.

[0005] One aspect of an embodiment of the present invention provides a method for detecting an abnormality in a smart lock motor and lock body, comprising:

[0006] Record the first action duration of the lock body from motor start to motor stall;

[0007] If the second action duration of the lock body from motor start to motor stall recorded in the local history reaches a first set number, then determine the average duration and the shortest duration of the second action duration;

[0008] If the first action duration is less than the set normal action duration, additional power is supplied to the motor for the set power supply duration, the normal action duration is determined based on the shortest duration and is less than the shortest duration, and the power supply duration is the time difference between the average duration and the normal action duration;

[0009] Acquire multiple sampled current values ​​of the motor current at a set frequency, where the sampling time is from the start of the motor to the end of the power supply period;

[0010] determining a slope between two adjacent sampled current values ​​with respect to a sampling time;

[0011] If there is a second set number of consecutive slopes greater than the preset slope, the maximum output current of the motor is limited to within the set limit current range.

[0012] Preferably, after limiting the maximum output current of the motor to within a set current limit range, the method further includes:

[0013] Collecting and limiting the motor current value at the set frequency;

[0014] The limiting current value is reported to the cloud, so that the cloud can calculate the range ratio of the lock body jam according to the limiting current value, and send the diagnosis result of the range ratio to the user terminal.

[0015] Preferably, it also includes:

[0016] If the second action duration of the lock body from motor start to motor stall recorded in the local history does not reach the first set number, the first action duration is stored locally as a new second action duration.

[0017] Preferably, it also includes:

[0018] Determining a maximum duration of the second action;

[0019] If the first action duration is between the shortest duration and the maximum duration, the unlocking process of the lock body is determined to be normal unlocking.

[0020] Another aspect of an embodiment of the present invention provides another method for detecting an abnormality in a smart lock motor and lock body, including:

[0021] Receive the current limit value reported by the smart lock;

[0022] If there are multiple limiting current values, determining an average sampling time, a start sampling time, and an end sampling time of the limiting current values;

[0023] Determine a first range ratio of the lock body locked according to the limiting current value, the average value, the start sampling time and the end sampling time;

[0024] Calculating the absolute difference in slope between two adjacent limiting current values ​​with respect to sampling time;

[0025] Determining the degree of current instability caused by the abnormality of the smart lock motor according to the number of target absolute differences and the maximum absolute difference, wherein the target absolute difference is an absolute difference greater than a preset threshold;

[0026] A diagnosis result of the first range ratio and the degree of current instability is sent to a user terminal.

[0027] Preferably, it also includes:

[0028] If there is only one limiting current value, determining the second range ratio of the lock body locked according to the limiting current value;

[0029] The diagnosis result of the second range ratio is sent to the user terminal.

[0030] Another aspect of the present invention provides a device for detecting abnormalities in a smart lock motor and lock body, including:

[0031] A duration recording unit, used to record the duration of the first action of the lock body from motor start to motor stall;

[0032] a duration calculation unit, configured to determine an average duration and a minimum duration of the second action of the lock body from motor start to motor stall if the duration of the second action of the lock body recorded in the local history reaches a first set number;

[0033] an additional power supply unit, configured to supply additional power to the motor for a set power supply duration if the first action duration is less than a set normal action duration, the normal action duration being determined based on the shortest action duration and less than the shortest action duration, and the power supply duration being a time difference between the average action duration and the normal action duration;

[0034] A current value acquisition unit is used to acquire multiple sampled current values ​​of the motor current at a set frequency, where the acquisition time is from the start of the motor to the end of the power supply period;

[0035] a slope determining unit, configured to determine a slope between two adjacent sampled current values ​​with respect to a sampling time;

[0036] The current limiting unit is configured to limit the maximum output current of the motor to within a set current limit range if the slope is greater than the preset slope for a second set number of consecutive times.

[0037] Another aspect of the present invention provides another device for detecting abnormalities in a smart lock motor and lock body, including:

[0038] A current value receiving unit, used to receive the limit current value reported by the smart lock;

[0039] a duration determining unit, configured to determine an average sampling time, a start sampling time, and an end sampling time of the current limiting value if there are multiple current limiting values;

[0040] a range ratio determining unit, configured to determine a first range ratio of the lock body locked according to the limiting current value, the average value, the start sampling time, and the end sampling time;

[0041] an absolute difference calculation unit, configured to calculate an absolute difference in slope between two adjacent limiting current values ​​with respect to a sampling time;

[0042] a current anomaly determination unit, configured to determine a degree of current instability caused by an abnormality in the smart lock motor based on the number of target absolute differences and a maximum absolute difference, wherein the target absolute difference is an absolute difference greater than a preset threshold;

[0043] The diagnosis result sending unit is used to send the diagnosis result of the first range ratio and the degree of current instability to a user terminal.

[0044] Another aspect of an embodiment of the present invention further provides an electronic device, including a processor and a memory;

[0045] The memory is used to store programs;

[0046] The processor executes the program to implement the above method.

[0047] Another aspect of an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the above method.

[0048] The embodiments of the present invention further disclose a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium and execute the computer instructions, causing the computer device to perform the above-described method.

[0049] The method for detecting abnormality of the lock body of the smart lock motor of the present invention includes: recording the first action duration of the lock body from motor startup to motor stall; if the second action duration of the lock body from motor startup to motor stall recorded in the local history reaches a first set number, it can be said that the lock body has been stably unlocked or locked a certain number of times, and the historical action durations of the stable operation of the lock body are used as the second action durations, and then the average duration and the shortest duration of the second action duration are determined; if the first action duration is less than the set normal action duration, it can be considered that the lock body operation is abnormal at this time, and then additional power can be supplied to the motor for the set power supply duration, the normal action duration is determined according to the shortest duration and is less than the shortest duration, and the power supply duration is the time difference between the average duration and the normal action duration; obtaining multiple sampled current values ​​of the motor current collected at a set frequency, and the collection time is from motor startup to the end of the power supply duration; determining the slope between two adjacent sampled current values ​​with respect to the sampling time; if there is a second set number of consecutive slopes greater than the preset slope, the maximum output current of the motor is limited to within the range of the set limit current. By detecting the duration of the lock body stalling and the degree of change in the current value at each time point during the stalling process, if the slope is greater than the preset slope for a second set number of consecutive times, it can be considered that the current change is too large and there is an abnormality in the lock body operation process, thereby achieving accurate detection of the lock body condition and limiting the maximum output current of the motor to within the set limit current range to avoid long-term high current damage to the motor. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0051] Figure 1 A schematic diagram of a flow chart of a method for detecting abnormalities in a smart lock motor and lock body provided by an embodiment of the present invention;

[0052] Figure 2 A schematic flow chart of another method for detecting abnormalities in a smart lock motor and lock body provided by an embodiment of the present invention;

[0053] Figure 3 An example diagram of a normal locked-rotor current variation value with respect to time provided by an embodiment of the present invention;

[0054] Figure 4 An example diagram of a current change value over time when a motor is stopped after a certain delay after stalling, provided by an embodiment of the present invention;

[0055] Figure 5An example diagram of a current change value over time after limiting the maximum output current of a motor provided by an embodiment of the present invention;

[0056] Figure 6 A structural block diagram of a smart lock motor lock body abnormality detection method provided by an embodiment of the present invention;

[0057] Figure 7 A structural block diagram of another smart lock motor lock body abnormality detection provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0059] Reference Figure 1 The embodiment of the present invention provides a method for detecting abnormalities in the lock body of a smart lock motor, which is applied to the lock control circuit of a smart door lock and specifically includes the following steps:

[0060] Step S100: recording the first action duration of the lock body from motor start to motor stall.

[0061] Specifically, the first action duration of the lock body may be the time length from when the motor is started to when the motor is blocked and stops rotating. After the power supply of the motor is cut off, the motor will be blocked and stop rotating.

[0062] It should be noted that the actions of the lock body may include unlocking and locking. If the action duration of unlocking the lock body is detected, the first action duration and the second action duration of the subsequent step are both the action duration of unlocking the lock body. If the action duration of locking the lock body is detected, the first action duration and the second action duration of the subsequent step are both the action duration of locking the lock body.

[0063] Step S110: If the second action duration of the lock body from motor start to motor stall recorded in the local history reaches a first set number, the average duration and the shortest duration of the second action duration are determined.

[0064] Specifically, the duration required for each normal action of the lock body can be recorded locally. Therefore, the action durations of multiple lock bodies from motor start-up to motor stalling can be pre-recorded locally and recorded as second action durations. If the number of pre-recorded second action durations reaches the first set number, the average duration of each second action duration can be calculated and the shortest duration can be determined.

[0065] Furthermore, if the second action duration of the lock body from motor start to motor stall recorded in the local history does not reach the first set number, the first action duration can be stored locally as the new second action duration.

[0066] If the second action duration reaches the first set number, step S120 and subsequent steps may be performed.

[0067] Step S120: If the first action duration is less than the set normal action duration, additional power is supplied to the motor for the set power supply duration, the normal action duration is determined based on the shortest duration and is less than the shortest duration, and the power supply duration is the time difference between the average duration and the normal action duration.

[0068] Specifically, the normal working time can be determined based on the shortest time, and the normal working time can be slightly shorter than the shortest time. For example, the normal working time is a set percentage of the shortest time, such as 80% of the shortest time or 70% of the shortest time, or it can be the shortest time minus a specific time, such as the normal working time is the shortest time minus 1 second or minus 0.5 seconds.

[0069] The time difference between the average duration and the normal action duration can be used as the duration of additional power supply. If the first action duration is less than the set normal action duration, the motor can continue to be powered for a period of time after the motor stalls. The power supply duration can be the time difference between the average duration and the normal action duration.

[0070] In addition, the maximum duration of the second action duration may be determined. If the first action duration is between the shortest duration and the maximum duration, the unlocking process of the lock body may be determined as normal unlocking.

[0071] Step S130: acquiring a plurality of sampled current values ​​of the motor current at a set frequency, wherein the sampling time is from the start of the motor to the end of the power supply period.

[0072] Specifically, from the time the motor starts to the time the additional power supply period ends, the motor current can be sampled at a set frequency to obtain a plurality of sampled current values.

[0073] Step S140: determining the slope between two adjacent sampled current values ​​with respect to the sampling time.

[0074] Specifically, each sampled current value may correspond to a sampling time, so the slope between two adjacent sampled current values ​​with respect to the sampling time may be calculated, thereby obtaining multiple slopes.

[0075] Step S150: If there is a second set number of consecutive slopes greater than the preset slope, the maximum output current of the motor is limited to a set limit current range.

[0076] Specifically, the slopes can be sorted according to the sampling time. If there are a second set number of consecutive slopes greater than the preset slope, it can be considered that the current change is large and there is an abnormal situation. The maximum output current of the motor can be limited to the set limit current range to avoid excessive current damaging the motor.

[0077] Furthermore, after limiting the maximum output current of the motor, in order to detect the current fluctuation amplitude, after limiting the maximum output current of the motor to within a set limit current range, the embodiment of the present invention may further include:

[0078] S1. Collecting and limiting the motor current value at the set frequency.

[0079] Specifically, the motor current after limiting the maximum output current may continue to be sampled at the set frequency to obtain a limited current value.

[0080] S2. Report the limiting current value to the cloud, so that the cloud can calculate the range ratio of the lock body stall according to the limiting current value, and send the diagnosis result of the range ratio to the user terminal.

[0081] Specifically, the collected limiting current value is reported to the cloud, and then the cloud can send a notification to the user terminal through the Internet platform, terminal application, SMS, etc. based on the detection results of the limiting current value to inform the door lock user or maintenance personnel.

[0082] Reference Figure 2 The embodiment of the present invention provides another method for detecting abnormalities in the motor and lock body of a smart lock, which is applied to the cloud and specifically includes the following steps:

[0083] Step S200: Receive the current limit value reported by the smart lock.

[0084] Specifically, the limiting current value may be the current value obtained by the smart lock collecting the motor current at a set frequency after limiting the maximum output current of the motor to within a set current limit range.

[0085] Step S210 : If there are multiple limiting current values, determine the average sampling time, the start sampling time, and the end sampling time of the limiting current values.

[0086] Specifically, the start sampling time may be the sampling time corresponding to the first collected limit current value, and the end sampling time may be the sampling time corresponding to the last collected limit current value.

[0087] Step S220: determining a first range ratio of the lock body locked according to the limiting current value, the average value, the start sampling time, and the end sampling time.

[0088] Specifically, the range ratio calculation process may include: multiplying the time difference between the start sampling time and the end sampling time by the limit current value, dividing the average value, and then converting the result into a percentage to obtain the range ratio. The range ratio obtained in this step may be used as the first range ratio.

[0089] Step S230: calculating the absolute difference between the slopes of two adjacent limiting current values ​​with respect to the sampling time.

[0090] Step S240: Determine the degree of current instability caused by the abnormality of the smart lock motor based on the number of target absolute differences and the maximum absolute difference, where the target absolute difference is an absolute difference greater than a preset threshold.

[0091] Specifically, if an absolute difference is greater than a preset threshold, the absolute difference can be used as the target absolute difference. Then, based on the number of target absolute differences and the maximum absolute difference, the degree of current instability caused by the abnormality of the smart lock motor, that is, the amplitude of the current change, is determined.

[0092] Step S250: Sending the diagnosis result of the first range ratio and the degree of current instability to a user terminal.

[0093] Specifically, the diagnosis result of the first range ratio and the degree of current instability can be sent to the user terminal through an Internet platform, terminal application, text message, etc. to inform the door lock user or maintenance personnel.

[0094] Furthermore, the embodiment of the present invention may further include:

[0095] S1. If there is only one limiting current value, determine the second range ratio of the lock body locked according to the limiting current value.

[0096] S2. Send the diagnosis result of the second range ratio to the user terminal.

[0097] Specifically, the calculation process of the second range ratio may refer to the above step S220.

[0098] In order to describe the present invention in more detail, the practical application process of the present invention will be described below with specific examples.

[0099] Reference Figure 3 , an embodiment of the present invention provides an example diagram of a normal locked-rotor current change value with respect to time.

[0100] 1. The smart lock records two lists: normal unlocking record list A and normal locking record list B.

[0101] 2. Each record in A and B is R. The field contained in R is the duration, which is calculated as the time from motor start to motor stall, that is, the time when the power is cut off. The following uses the unlocking process as an example. The locking process can be referred to the description of the unlocking process.

[0102] 3. Every time the user triggers unlocking, the smart lock generates a lock switch record R1.

[0103] 4. Based on the unlocking action, extract all unlocking records from List A.

[0104] 5. If there are less than 20 unlocking records, directly insert R1 into the corresponding A.

[0105] 6. If the number of unlocking and locking records A reaches 20, calculate the average duration Tr, minimum duration Tmin, and maximum duration Tmax of the 20 unlocking records, synchronize them to the cloud, and then process R1 as follows:

[0106] 1) When the R1 duration is between [Tmin, Tmax], the door is unlocked normally and the detection process ends.

[0107] 2) If the R1 duration is less than (0.8*Tmin), it is determined to be an abnormal unlocking, and the following steps are performed:

[0108] a. The lock control circuit continues to supply power to the motor for (Tr-0.8*Tmin) and samples the motor current at frequency f within the range of (0, Tr-0.8*Tmin). Figure 4 , an embodiment of the present invention provides an example diagram of the current change value over time when the motor is stopped after a certain delay after stalling.

[0109] b. Calculate the slope of the current value change for every two adjacent sampling points, and eventually form a slope Yn sequence. Each record consists of the start time, end time, and slope.

[0110] c. If the slope Y of the current change at N consecutive sampling points is greater than the preset K value, the current output will be limited to the Imax range through the current limiting protection circuit. Figure 5 , an embodiment of the present invention provides an example diagram of the current change value with respect to time after limiting the maximum output current of the motor.

[0111] d. Record the start and end times RImax1. If the actual motor current fluctuates above and below Imax, multiple RImaxn will be generated, eventually forming a sequence RImaxN.

[0112] 7. The smart lock reports the Yn sequence and RImaxN sequence to the cloud.

[0113] 8. The cloud analyzes the reported sampling data, Yn sequence, and RImaxN sequence.

[0114] 9. If there is only one record in the RImaxN sequence, it can be determined that the motor has stalled throughout the entire process. Based on the record in RImaxN, the lock body stall range ratio is calculated as: X = (RImaxn (end time - start time) / Tr) * 100%. The diagnostic result of the X stall ratio is notified to the user or maintenance personnel via the platform, app, SMS, etc.

[0115] 10. If there are multiple records within the RImaxN sequence, calculate the lock body stall range ratio according to step 9: ∑(RImaxn(end time - start time) / Tr)*100%. Then, from the start time of the first RImaxn sequence to the end time of the last RImaxn, calculate the absolute difference in the slope change of adjacent Yn within this range, △Y = |Yn2-Yn1|. If △Y > the preset value, record △Y. Then, based on the number of △Ys and the maximum value of △Y, determine the severity of the current glitch caused by the motor abnormality and notify the user or maintenance personnel through the platform, app, SMS, etc.

[0116] Reference Figure 6 The embodiment of the present invention provides a device for detecting abnormalities in a smart lock motor and lock body, comprising:

[0117] A duration recording unit, used to record the duration of the first action of the lock body from motor start to motor stall;

[0118] a duration calculation unit, configured to determine an average duration and a minimum duration of the second action of the lock body from motor start to motor stall if the duration of the second action of the lock body recorded in the local history reaches a first set number;

[0119] an additional power supply unit, configured to supply additional power to the motor for a set power supply duration if the first action duration is less than a set normal action duration, the normal action duration being determined based on the shortest action duration and less than the shortest action duration, and the power supply duration being a time difference between the average action duration and the normal action duration;

[0120] A current value acquisition unit is used to acquire multiple sampled current values ​​of the motor current at a set frequency, where the acquisition time is from the start of the motor to the end of the power supply period;

[0121] a slope determining unit, configured to determine a slope between two adjacent sampled current values ​​with respect to a sampling time;

[0122] The current limiting unit is configured to limit the maximum output current of the motor to within a set current limit range if the slope is greater than the preset slope for a second set number of consecutive times.

[0123] Reference Figure 7 , an embodiment of the present invention provides another device for detecting abnormalities in a smart lock motor and lock body, comprising:

[0124] A current value receiving unit, used to receive the limit current value reported by the smart lock;

[0125] a duration determining unit, configured to determine an average sampling time, a start sampling time, and an end sampling time of the current limiting value if there are multiple current limiting values;

[0126] a range ratio determining unit, configured to determine a first range ratio of the lock body locked according to the limiting current value, the average value, the start sampling time, and the end sampling time;

[0127] an absolute difference calculation unit, configured to calculate an absolute difference in slope between two adjacent limiting current values ​​with respect to a sampling time;

[0128] a current anomaly determination unit, configured to determine a degree of current instability caused by an abnormality in the smart lock motor based on the number of target absolute differences and a maximum absolute difference, wherein the target absolute difference is an absolute difference greater than a preset threshold;

[0129] The diagnosis result sending unit is used to send the diagnosis result of the first range ratio and the degree of current instability to a user terminal.

[0130] The embodiment of the present invention also discloses a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs Figure 1 The method shown.

[0131] In some optional embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided in an exemplary manner for the purpose of providing a more comprehensive understanding of the technology. The disclosed method is not limited to the operation and logic flow presented herein. Optional embodiments are contemplated in which the order of the various operations is changed and the sub-operations described as a part of a larger operation are performed independently.

[0132] Furthermore, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise indicated, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It will also be understood that a detailed discussion of the actual implementation of each module is not necessary for understanding the present invention. More specifically, given the properties, functions, and internal relationships of the various functional modules in the devices disclosed herein, the actual implementation of the module will be understood within the ordinary skill of an engineer. Therefore, a person skilled in the art using ordinary skill will be able to implement the present invention set forth in the claims without undue experimentation. It will also be understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0133] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0134] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device.

[0135] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic devices), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering, or processing in another suitable manner as necessary, and then stored in a computer memory.

[0136] It should be understood that various parts of the present invention can be implemented using hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0137] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0138] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the claims and their equivalents.

[0139] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present invention.

Claims

1. A method for detecting abnormality of a smart lock motor and lock body, characterized in that: include: Record the first action duration of the lock body from motor start to motor stall; If the second action duration of the lock body from motor start to motor stall recorded in the local history reaches a first set number, then determine the average duration and the shortest duration of the second action duration; If the first action duration is less than the set normal action duration, additional power is supplied to the motor for the set power supply duration, the normal action duration is determined based on the shortest duration and is less than the shortest duration, and the power supply duration is the time difference between the average duration and the normal action duration; Acquire multiple sampled current values ​​of the motor current at a set frequency, where the sampling time is from the start of the motor to the end of the power supply period; determining a slope between two adjacent sampled current values ​​with respect to a sampling time; If there is a second set number of consecutive slopes greater than the preset slope, the maximum output current of the motor is limited to the set limit current range; After limiting the maximum output current of the motor to within the set limit current range, the method further includes: Collecting and limiting the motor current value at the set frequency; The limiting current value is reported to the cloud, so that the cloud can calculate the range ratio of the lock body jam according to the limiting current value, and send the diagnosis result of the range ratio to the user terminal.

2. The method for detecting abnormality of a smart lock motor and lock body according to claim 1, characterized in that: Also includes: If the second action duration of the lock body from motor start to motor stall recorded in the local history does not reach the first set number, the first action duration is stored locally as a new second action duration.

3. The method for detecting abnormality of a smart lock motor and lock body according to claim 1, characterized in that: Also includes: Determining a maximum duration of the second action; If the first action duration is between the shortest duration and the maximum duration, the unlocking process of the lock body is determined to be normal unlocking.

4. A method for detecting abnormality of a smart lock motor and lock body, characterized in that: The cloud used in the method for detecting abnormality of a smart lock motor and lock body as claimed in claim 1 includes: Receive the current limit value reported by the smart lock; If there are multiple limiting current values, determining an average sampling time, a start sampling time, and an end sampling time of the limiting current values; Determine a first range ratio of the lock body locked according to the limiting current value, the average value, the start sampling time and the end sampling time; Calculating the absolute difference in slope between two adjacent limiting current values ​​with respect to sampling time; Determining the degree of current instability caused by the abnormality of the smart lock motor according to the number of target absolute differences and the maximum absolute difference, wherein the target absolute difference is an absolute difference greater than a preset threshold; A diagnosis result of the first range ratio and the degree of current instability is sent to a user terminal.

5. The method for detecting abnormality of a smart lock motor and lock body according to claim 4, characterized in that: Also includes: If there is only one limiting current value, determining the second range ratio of the lock body locked according to the limiting current value; The diagnosis result of the second range ratio is sent to the user terminal.

6. A device for detecting abnormality of a smart lock motor and lock body, characterized in that: include: A duration recording unit, used to record the duration of the first action of the lock body from motor start to motor stall; a duration calculation unit, configured to determine an average duration and a minimum duration of the second action of the lock body from motor start to motor stall if the duration of the second action of the lock body recorded in the local history reaches a first set number; an additional power supply unit, configured to supply additional power to the motor for a set power supply duration if the first action duration is less than a set normal action duration, the normal action duration being determined based on the shortest action duration and less than the shortest action duration, and the power supply duration being a time difference between the average action duration and the normal action duration; A current value acquisition unit is used to acquire multiple sampled current values ​​of the motor current at a set frequency, where the acquisition time is from the start of the motor to the end of the power supply period; a slope determining unit, configured to determine a slope between two adjacent sampled current values ​​with respect to a sampling time; a current limiting unit, configured to limit the maximum output current of the motor to within a set current limit range if the slope is greater than the preset slope for a second set number of consecutive times; The detection device is also used for: After limiting the maximum output current of the motor to within the set current limit range, collecting a current limit value of the motor current at the set frequency; The limiting current value is reported to the cloud, so that the cloud can calculate the range ratio of the lock body jam according to the limiting current value, and send the diagnosis result of the range ratio to the user terminal.

7. A device for detecting abnormality of a smart lock motor and lock body, characterized in that: The cloud used in the method for detecting abnormality of a smart lock motor and lock body as claimed in claim 1 includes: A current value receiving unit, used to receive the limit current value reported by the smart lock; a duration determining unit, configured to determine an average sampling time, a start sampling time, and an end sampling time of the current limiting value if there are multiple current limiting values; a range ratio determining unit, configured to determine a first range ratio of the lock body locked according to the limiting current value, the average value, the start sampling time, and the end sampling time; an absolute difference calculation unit, configured to calculate an absolute difference in slope between two adjacent limiting current values ​​with respect to a sampling time; a current anomaly determination unit, configured to determine a degree of current instability caused by an abnormality in the smart lock motor based on the number of target absolute differences and a maximum absolute difference, wherein the target absolute difference is an absolute difference greater than a preset threshold; The diagnosis result sending unit is used to send the diagnosis result of the first range ratio and the degree of current instability to a user terminal.

8. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to any one of claims 1 to 3.

9. A computer-readable storage medium, characterized in that The storage medium stores a program, and the program is executed by a processor to implement the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Intelligent control apparatus and method for switch cabinet electric driver

    CN105406593A

  • DC motor current slope judgment method

    CN106100473A