Intelligent lock, detection control method and device thereof and storage medium
By combining the detection and control methods of gravity sensors and infrared sensors, the smart lock can accurately detect the opening or closing state of the door, solving the problem that the existing smart lock cannot accurately detect the state and improving safety.
Patent Information
- Application Number
- CN202311786743.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2025-06-24
AI Technical Summary
The existing smart lock cannot accurately detect the door's closing and opening status, and the smart lock's security is low due to the misjudgment of the magnet induction module.
The detection and control method combined with gravity sensor and infrared sensor is adopted to obtain the motion state of the door through the gravity sensor, and the initial and update state of the door is detected by the infrared sensor to accurately judge the opening or closing state of the door.
It realizes accurate detection of the door closing and opening state, improves the safety of the smart lock, and avoids misjudgment of the magnet induction module.
Smart Images

Figure CN120193710A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic locks, and in particular, to an intelligent lock and its detection and control method, device, and storage medium. Background Art
[0002] For traditional intelligent locks on the market currently, in order to enable the intelligent lock installed on the door to automatically lock the door, an additional magnet device needs to be installed on the door frame. When the door is in the closed state, the magnet sensing module on the intelligent lock detects the magnet device, and then it is confirmed that the door is closed, thereby triggering the motor of the intelligent lock to drive the lock tongue to lock the door to complete the automatic locking of the door. The above existing method for automatically locking the door has the following two disadvantages:
[0003] First, the user needs to additionally install a magnet device on the door frame. If the magnet device is not installed in the correct position by the user, or is later manually or accidentally moved outside the correct position, the function of the magnet device will fail.
[0004] Second, due to the characteristics of the magnet device, its magnetic force radiates within a certain range, thus unable to meet the accurate detection requirements. Therefore, even when the door is in a half-closed state or the door is close to being closed but not completely closed, the magnet sensing module still determines that the door is closed based on the detection of the presence of the magnet device, resulting in misjudgment of the closed state of the door, and making the intelligent lock have low security and poor user experience.
[0005] Therefore, there is an urgent need to provide an intelligent lock and its detection and control method, device, and storage medium that can accurately detect the closed and open states of the door and improve the security of the intelligent lock. Summary of the Invention
[0006] In view of this, embodiments of the present invention provide an intelligent lock and its detection and control method, device, and storage medium to solve the technical problems in the prior art of being unable to accurately detect the closed and open states of the door and the low security of the intelligent lock.
[0007] First, embodiments of the present invention provide a detection and control method for an intelligent lock. The intelligent lock includes an infrared sensor, a gravity sensor, a driving mechanism, and a locking member. The driving mechanism is used to drive the locking member to move. The detection and control method includes: S1: Obtain the triggering situation on the gravity sensor; S2: If the gravity sensor is triggered, detect the initial state of the locking member with respect to the door through the infrared sensor; S3: Detect the triggering situation of the gravity sensor within a preset time period. If it is detected that the gravity sensor is triggered within the preset time period, update the initial state through the infrared sensor to determine the updated state of the locking member with respect to the door; S4: If the initial state is open and the updated state is closed, control the driving mechanism to drive the locking member to close the door.
[0008] Further, the intelligent lock includes a lock body. The infrared sensors include a first infrared sensor and a second infrared sensor disposed on an outer side surface of the lock body. The first infrared sensor includes a first infrared emitter and a first infrared receiver, and the second infrared sensor includes a second infrared emitter and a second infrared receiver. The outer side surface is parallel to the rotating end surface of the door panel for installing the intelligent lock. The first infrared receiver is used to receive the first infrared sensing signal emitted by the first infrared emitter, and the second infrared receiver is used to receive the second infrared sensing signal emitted by the second infrared emitter. The locking member is used to open or close the door panel relative to the door frame. A reflection area is provided on the door frame. In the state where the door panel is closed relative to the door frame, the second infrared sensor is opposite to the reflection area, and in the direction of the door being rotated from the open state to the closed state, the first infrared sensor is located upstream of the second infrared sensor; Step S2 includes: S21: Obtain a first reception result of receiving the first infrared sensing signal on the first infrared receiver and a second reception result of receiving the second infrared sensing signal on the second infrared receiver; S22: Based on the first reception result and the second reception result, obtain a first timing duration corresponding to the first timer and a second timing duration corresponding to the second timer; S23: Obtain a preset first duration threshold and a second duration threshold; S24: If the first timing duration is greater than the first duration threshold, the initial state of the locking member for the door is open; S25: If the second timing duration is greater than the second duration threshold, the initial state of the locking member for the door is closed.
[0009] Further, step S22 includes: S221: Based on the first reception result and the second reception result, if the first infrared receiver successfully receives the first infrared sensing signal, then start the first timer; S222: If the second infrared receiver successfully receives the second infrared sensing signal within a preset first waiting duration, then obtain the real-time first timing duration on the first timer; S223: Based on the first reception result and the second reception result, if the second infrared receiver successfully receives the second infrared sensing signal, then start the second timer; S224: If the first infrared receiver successfully receives the first infrared sensing signal within a preset second waiting duration, then obtain the real-time second timing duration on the second timer.
[0010] Further, step S2 further includes: S26: If the second infrared receiver fails to successfully obtain the second infrared sensing signal within the preset first waiting duration, then identify it as the state of the door being ajar; S27: If the first infrared receiver fails to successfully obtain the first infrared sensing signal within the preset second waiting duration, then identify it as the state of the door being abnormally closed.
[0011] Further, step S27 includes: S271: If the first infrared receiver fails to successfully obtain the first infrared sensing signal within a preset second waiting duration and the number of times the second infrared receiver receives the second infrared sensing signal within the second waiting duration is one, it is identified as the state of the door being ajar; S272: If the first infrared receiver fails to successfully obtain the first infrared sensing signal within a preset second waiting duration and the number of times the second infrared receiver receives the second infrared sensing signal within the second waiting duration is greater than the number threshold, it is identified as the state of the door being stolen.
[0012] Further, step S4 includes: S41: If the initial state is open and the updated state is closed, determine the moving speed of the door towards the preset door-closing direction according to the first timing duration; S42: Perform a conversion process on the moving speed to determine the door-closing force level; S43: Evaluate the user's daily door-closing behavior according to the door-closing force level.
[0013] Further, step S43 further includes: S431: Divide the door-closing force level into a large level, a medium level, and a small level, and count the total number of occurrences of different door-closing force levels within a preset number of days; S432: When the total number of the large level is less than the preset total number, evaluate the user's daily door-closing behavior as normal; S433: When the total number of the large level is greater than the preset total number, evaluate the user's daily door-closing behavior as abnormal, and notify the user to maintain or replace the smart lock.
[0014] In a second aspect, an embodiment of the present invention further provides a detection control device for a smart lock, including: a gravity sensor trigger acquisition module for acquiring the trigger situation of the gravity sensor; an infrared sensor detection module for detecting the initial state of the door by the infrared sensor; a door updated state determination module for updating the initial state through the infrared sensor to determine the updated state of the door by the locking member; a locking member driving module for controlling the driving mechanism to drive the locking member to close the door when the updated state is closed.
[0015] In a third aspect, an embodiment of the present invention provides a smart lock, including: at least one processor, a gravity sensor, an infrared sensor, a driving mechanism, a locking member, at least one memory, and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the detection control method of the smart lock as described in any one of the first aspect is implemented.
[0016] In a fourth aspect, an embodiment of the present invention provides a storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by the processor, the detection control method of the smart lock as described in any one of the first aspect is implemented.
[0017] The beneficial effects of the present invention:
[0018] The present invention combines the reception and calculation of sensing signals from the gravity sensor and infrared sensor provided in the intelligent lock to comprehensively judge the movement state of the door panel and the state of the door panel being opened or closed, and can drive the locking member to move according to the door panel closed state information to reliably close the door panel. Therefore, the detection control method of the intelligent lock has the advantages of accurately detecting the opening and closing states of the door and improving the security of the intelligent lock. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required to be used in the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings, and these are all within the protection scope of the present invention.
[0020] Figure 1 is a flowchart showing the detection control method of an intelligent lock provided by an embodiment of the present invention;
[0021] Figure 2 is a flowchart showing an implementation manner of step S2 of the detection control method of an intelligent lock provided by an embodiment of the present invention;
[0022] Figure 3 is a flowchart showing an implementation manner of step S4 of the detection control method of an intelligent lock provided by an embodiment of the present invention;
[0023] Figure 4 is a schematic diagram showing the module composition of a detection control device of an intelligent lock provided by an embodiment of the present invention;
[0024] Figure 5 is a schematic diagram showing the electrical connection between a processor, an infrared sensor, a gravity sensor, and a driving mechanism of an intelligent lock provided by an embodiment of the present invention;
[0025] Figure 6 is a partial structural schematic diagram of an intelligent lock installed on a door panel and viewed from one perspective provided by an embodiment of the present invention;
[0026] Figure 7 is a partial structural schematic diagram of an intelligent lock installed on a door panel and viewed from another perspective provided by an embodiment of the present invention;
[0027] Figure 8 is an assembly structural schematic diagram of a lock body, an infrared sensor, and a locking member of an intelligent lock provided by an embodiment of the present invention;
[0028] Figure 9 is an exploded structural schematic diagram of an intelligent lock provided by an embodiment of the present invention;
[0029] Figure 10 It is a schematic structural diagram of some components of an intelligent lock in the direction of the outer lock case provided by an embodiment of the present invention;
[0030] Figure 11 It is a schematic structural diagram of some components of an intelligent lock in the direction of the inner lock case provided by an embodiment of the present invention;
[0031] Figure 12 It is a schematic hardware structure diagram of the intelligent lock of the present invention.
[0032] Explanation of reference numerals:
[0033] 1. Intelligent lock; 11. Lock body; 12. First infrared sensor; 121. First infrared emitter; 122. First infrared receiver; 13. Second infrared sensor; 131. Second infrared emitter; 132. Second infrared receiver; 14. Driving mechanism; 15. Locking member; 16. Outer lock case; 17. Inner lock case; 2. Door panel. Detailed implementation manners
[0034] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or sequence between these entities or operations. In the description of the present invention, it should be understood that the terms "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus cannot be construed as a limitation of the present invention. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, the elements defined by the statement "comprising..." do not exclude the existence of additional identical elements in the process, method, article or device including the elements. If there is no conflict, the embodiments of the present invention and the various features in the embodiments can be combined with each other, and all are within the protection scope of the present invention.
[0035] The intelligent lock, detection control method, device and storage medium provided by the present invention have the advantages of being able to accurately detect the closed and opened states of the door and improving the security of the intelligent lock. For the convenience of understanding, the intelligent lock applying the detection control method will be described first below.
[0036] Embodiment 1
[0037] Embodiment 1 of the present invention provides an intelligent lock. Please refer to Figures 6 to 11, the intelligent lock 1 includes a lock body 11, an infrared sensor, a gravity sensor (not shown), at least one processor, a driving mechanism 14, and a locking member 15. In the embodiment of the present invention, the infrared sensor includes a first infrared sensor 12 and a second infrared sensor 13 disposed on an outer side surface of the lock body 11. The first infrared sensor 12 includes a first infrared transmitter 121 and a first infrared receiver 122, and the second infrared sensor 13 includes a second infrared transmitter 131 and a second infrared receiver 132. The first infrared receiver 122 is configured to receive a first infrared sensing signal emitted by the first infrared transmitter 121, and the second infrared receiver 132 is configured to receive a second infrared sensing signal emitted by the second infrared transmitter 131. Preferably, the first infrared transmitter 121 and the first infrared receiver 122 are arranged along the vertical direction, that is, the vertical extension direction of the door panel, and the second infrared transmitter 131 and the second infrared receiver 132 are also arranged along the vertical direction. Moreover, the first infrared transmitter 121 and the second infrared transmitter 131 are aligned in the horizontal direction perpendicular to the vertical direction, and the second infrared transmitter 131 and the second infrared receiver 132 are also aligned in the horizontal direction. Furthermore, the first infrared sensor 12 and the second infrared sensor 13 are respectively located outside two opposite telescopic vertical side surfaces of the locking member 15. Preferably, relative to the vertical symmetry center plane of the locking member 15, the first infrared transmitter 121 and the second infrared transmitter 131 are symmetric, and the first infrared receiver 122 and the second infrared receiver 132 are symmetric. The outer side surface of the above-mentioned lock body 11 is parallel or can be said to be aligned with the rotating end surface of the door panel for installing the intelligent lock 1. It should be noted that the rotating end surface is the side surface of the door panel 2 facing the door frame when the door panel 2 is in the closed state, or can be said to be the side surface of the door panel 2 that pivots relative to the fixed end of the door panel 2. The locking member 15 is configured to open or close the door panel 2 relative to the door frame. A reflection area is provided on the door frame, and the reflection area is configured to reflect the infrared sensing signal emitted by the first infrared transmitter 121 or the second infrared transmitter 131 thereto, so as to determine the movement position of the door panel 2 relative to the door frame according to whether the first infrared receiver 122 or the second infrared receiver 132 receives the infrared sensing signal. In the initial state where the door panel 2 is closed relative to the door frame, the second infrared sensor 13 faces the reflection area, and in the direction in which the door is rotated from open to closed, and in the direction in which the door is rotated from open to closed, the first infrared sensor 12 is located upstream of the second infrared sensor 13. Thus, when the door is rotated and closed, the first infrared sensor 12 obtains the infrared sensing signal prior to the second infrared sensor 13. Conversely, when the door is rotated and opened, the second infrared sensor 13 obtains the infrared sensing signal prior to the first infrared sensor 12. Additionally, for the case where an infrared sensor is provided on the door frame, a reflection area is provided on the door panel 2, and the arrangement positions of the infrared sensor and the reflection area can be determined with reference to the above description.
[0038] Embodiment 2
[0039] Please refer to Figure 1 , the following is a detailed description of a detection control method for an intelligent lock provided in Embodiment 2 of the present invention. This detection control method has the advantages of being able to accurately detect the initial state of the door and timely update the state, and improving the security of the intelligent lock 1. In the case of no conflict, the intelligent lock 1 described in this article can implement this detection control method. This detection control method includes:
[0040] S1: Obtain the triggering situation on the gravity sensor;
[0041] Specifically, the gravity sensor can be integrated with the processor on the control circuit board of the intelligent lock 1. The working principle of the gravity sensor is already known to those skilled in the art and will not be elaborated here. And it should be noted that the intelligent lock 1 includes an outer lock case 16 located outside the house and an inner lock case 17 located inside the house. The infrared sensor and the processor, the driving mechanism 14, the locking member 15, and the lock body 11 are electrically connected and installed between the fixedly connected outer lock case 16 and inner lock case 17, and the intelligent lock 1 is installed on the door panel 2. The driving mechanism 14 may specifically include a motor and a gear that are drivingly connected, and the gear drives the lock tongue to move. It should be noted that in the present invention, in the case of no conflict, the door and the door panel 2 have the same meaning. In addition, the infrared sensor can also be installed on the door panel 2. The infrared sensor communicates with the processor through wireless methods such as Bluetooth and ZigBee, but this will cause an increase in cost and cumbersome installation and maintenance. Therefore, the embodiments of the present invention are described by taking the above integrated installation method as an example.
[0042] S2: If the gravity sensor is triggered, detect the initial state of the door by the infrared sensor for the locking member 15;
[0043] Specifically, the processor determines the control of turning on, turning off, and detecting the infrared sensors according to whether the gravity sensor is triggered. Since if the gravity sensor is triggered, it means that the door panel 2 is still in motion or the door panel is accidentally and repeatedly shaken violently when the door is stolen. Therefore, the infrared sensor continuously detects the initial state of the door for the locking member 15. If the gravity sensor is no longer triggered, it means that the door panel 2 has been in a static state and the progress of opening or closing the door has been completed.
[0044] S3: Detect the triggering situation of the gravity sensor within a preset time period. If it is detected that the gravity sensor is triggered within the preset time period, update the initial state by the infrared sensor and determine the updated state of the door for the locking member 15;
[0045] Specifically, when the door panel 2 is in motion within a preset time period, the gravity sensor is continuously triggered, so that the infrared sensor is always in an operating state and continuously judges the state of the door panel, especially the opening or closing state of the door by the locking member 15, and updates the initial state until the gravity sensor is no longer triggered, that is, the door panel is in a static state. At this time, the updated state corresponds to the final opening or closing state of the door panel.
[0046] S4: If the initial state is open and the updated state is closed, then control the drive mechanism 14 to drive the locking member 15 to close the door.
[0047] Specifically, the locking member 15 installed on the door panel 2 and capable of relative movement with respect to the lock hole on the door frame can be specifically a lock tongue. When the locking member 15 is completely inserted into the lock hole, the door panel 2 is locked with the door frame, that is, the locking member 15 closes the door panel. When the locking member 15 withdraws from the lock hole, the door panel 2 is separated from the door frame, that is, the locking member 15 opens the door panel. Thus, when the infrared sensor detects that the door panel is in a closed state, the locking member 15 can be controlled to automatically close the door.
[0048] In summary, the detection and control method of the intelligent lock of the present invention combines the reception and operation of the sensing signals of the gravity sensor 14 and the infrared sensor provided in the intelligent lock 1 to comprehensively judge the movement state of the door panel 2 and the state of the door panel 2 being opened or closed. The way of receiving and transmitting the sensing signals of the infrared sensor has significantly higher precision compared with the traditional magnet induction method, and can drive the locking member 15 to move according to the door panel closed state information to reliably close the door panel 2. Therefore, the detection and control method has the advantages of accurately detecting the closing and opening states of the door panel and improving the security of the intelligent lock 1.
[0049] Please refer to Figure 2 , specifically, step S2 includes:
[0050] S21: Obtain the first reception result of the first infrared receiver 122 receiving the first infrared sensing signal emitted by the first infrared transmitter 121 and the second reception result of the second infrared receiver 132 receiving the second infrared sensing signal emitted by the second infrared transmitter 131.
[0051] Specifically, the first reception result includes that the first infrared receiver 122 receives the first infrared sensing signal and the first infrared receiver 122 does not receive the first infrared sensing signal. The second reception result includes that the second infrared receiver 132 receives the second infrared sensing signal and the second infrared receiver 132 does not receive the second infrared sensing signal.
[0052] S22: According to the first reception result and the second reception result, obtain the first timing duration corresponding to the first timer and the second timing duration corresponding to the second timer.
[0053] Specifically, the first timing duration is the duration from the first confirmation of receiving the first reception result to the confirmation of receiving the second reception result, and the second timing duration is the duration from the first confirmation of receiving the second reception result to the confirmation of receiving the first reception result.
[0054] S23: Obtain a preset first duration threshold and a second duration threshold.
[0055] Specifically, both the first duration threshold and the second duration threshold are set to 100 ms - 10 s. When the first duration threshold and the second duration threshold take values within 100 ms - 10 s, it not only meets the reasonable force and reasonable duration required for closing or opening the door, but also avoids misjudgment caused by incorrect occlusion of obstacles.
[0056] S24: If the first timing duration is greater than the first duration threshold, the initial state of the locking member 15 for the door is open.
[0057] Specifically, at the end of the first timing duration, it can be determined that the door panel 2 has been locked with the door frame, and thus the state is updated to the locking member 15 closing the door.
[0058] S25: If the second timing duration is greater than the second duration threshold, the initial state of the locking member 15 for the door is closed.
[0059] Specifically, at the end of the second timing duration, it can be determined that the door panel 2 has been separated from the door frame, and thus the state is updated to the locking member 15 opening the door.
[0060] As described above, by using the first timing duration being greater than the first duration threshold as the judgment basis for the initial state of the door being open and updating the state to the door being closed, and using the second timing duration being greater than the second duration threshold as the judgment basis for the initial state of the door being closed and updating the state to the door being open, it is possible to avoid the first infrared sensor 12 and the second infrared sensor 13 being incorrectly occluded by foreign objects, palms, clothes and other obstacles at the initial stage of the door opening, especially closing process, and wrongly reflecting the corresponding infrared sensing signals, thus preventing misjudgment of the closed and open states of the door.
[0061] More specifically, step S22 includes:
[0062] S221: According to the first reception result and the second reception result, if the first infrared receiver 122 successfully receives the first infrared sensing signal, start the first timer.
[0063] S222: If the second infrared receiver 132 successfully receives the second infrared sensing signal within a preset first waiting duration, obtain the real-time first timing duration on the first timer.
[0064] Specifically, for steps S221 and S222, it can be determined that during the door closing process, when the door panel first passes through the reflection area of the first infrared sensor 12, the first timer is started, and then when the second infrared sensor 13 moves to the reflection area, the first timer is stopped, so as to timely and accurately obtain the first timing duration.
[0065] S223: According to the first reception result and the second reception result, if the second infrared receiver 132 successfully receives the second infrared sensing signal, the second timer is started.
[0066] S224: If the first infrared receiver 122 successfully receives the first infrared sensing signal within the preset second waiting duration, the real-time second timing duration on the second timer is obtained;
[0067] Specifically, both the first waiting duration and the second waiting duration are set to 1 min - 10 min. Within this range of the two waiting durations, it can be ensured that the user has completed the door closing or opening operation and has basically left. Therefore, as the maximum waiting duration for judging whether the infrared sensing signal is received or not, it not only conforms to the operation habit, saves energy consumption, but also prolongs the service life of each infrared sensor. For steps S223 and S224, it can be determined that during the door opening process of the door panel, when the second infrared sensor 13 is first in the reflection area, the first timer is started, and then when the first infrared sensor 12 moves to the reflection area, the second timer is stopped, so as to timely and accurately obtain the second timing duration.
[0068] In this way, by judging whether the two different infrared sensors receive the corresponding infrared sensing signals respectively at different timing durations, the initial state of the door can be accurately judged and the updated state of the door can be determined.
[0069] Please refer to Figure 2 , preferably, step S2 further includes:
[0070] S26: If the second infrared receiver 132 fails to obtain the second infrared sensing signal within the preset first waiting duration, it is identified as the door ajar state;
[0071] Specifically, when the first waiting duration is exceeded, if the second infrared sensor 13 still fails to move to face the reflection area, resulting in the second reception result that the second infrared receiver 132 does not receive the second infrared sensing signal, it indicates that the door panel 2 is not normally locked, so the door is identified as being in the abnormal ajar state. In addition, the door ajar state information can be stored in the abnormal door opening and closing information database for notifying the house owner or tenant. In addition, the first timer is timely closed after the first waiting duration is reached, so as to avoid energy consumption due to long-term operation.
[0072] S27: If the first infrared receiver 122 fails to successfully obtain the first infrared sensing signal within the preset second waiting duration, it is identified as the abnormal closed state of the door;
[0073] Specifically, when the second waiting duration is exceeded, if the first infrared sensor 12 still fails to move to face the reflection area, resulting in the first reception result that the first infrared receiver 122 does not receive the first infrared sensing signal, it indicates that the door panel 2 does not normally separate from the door frame when being opened or the door panel has been repeatedly impacted (which will be further described below). In addition, the abnormal closed state information of the door can also be stored in the abnormal door opening / closing information database for notifying the house owner or tenant. Moreover, both the ajar state information and the abnormal closed state information in the abnormal door opening / closing information database can be notified to the house owner and tenant in a push or access manner in a timely manner, so as to prevent possible safety hazards. Additionally, the second timer is promptly turned off after the second waiting duration is reached, thus avoiding energy consumption due to long-term operation.
[0074] Further preferably, step S27 includes:
[0075] S271: If the first infrared receiver 122 fails to successfully obtain the first infrared sensing signal within the preset second waiting duration and the number of times the second infrared receiver 132 receives the second infrared sensing signal within the second waiting duration is one, it is identified as the ajar state of the door;
[0076] Specifically, the abnormal closed state of the door includes the ajar state and the stolen state of the door. Comparing the number of times the second infrared sensor 13 receives the second infrared sensing signal within the second waiting duration with the number threshold is essentially comparing the number of times the door panel, especially the second infrared sensor 13, passes through the reflection area within the second waiting duration with the number threshold. When the number of passes is one, it indicates that the second infrared sensor 13 facing the reflection area has moved away after receiving the second infrared sensing signal once, but the opening angle of the door panel has not reached the point where the first infrared sensor 12 faces the reflection area. Thus, it can be determined that the first infrared sensor 12 is still located in the keyhole and does not face the reflection area, so the door is in the ajar state. Both the ajar state information of the door and the above-mentioned ajar state information of the door can be notified to the house owner and tenant in a push or access manner in a timely manner, so as to prevent possible safety hazards.
[0077] S272: If the first infrared receiver 122 fails to successfully obtain the first infrared sensing signal within the preset second waiting duration and the number of times the second infrared receiver 132 receives the second infrared sensing signal within the second waiting duration is greater than the number threshold, it is identified as the stolen state of the door.
[0078] Specifically, when the number of times exceeds the threshold number of times, generally, the situation of the door being stolen occurs. When the door is stolen, the door panel will be subjected to abnormal forces such as repeated pushing, pulling, and impact, making it difficult to be opened at once. Thus, the abnormal force situation not only triggers the gravity sensor but also causes the second infrared sensor 13 to receive the second infrared sensing signal repeatedly for many times. In this way, the state of the door being stolen, which is the main situation of the abnormal closed state of the door, can be recognized. Therefore, an embodiment of the detection and control method of the present invention can be used for anti-theft purposes.
[0079] Please refer to Figure 3 , preferably, step S4 includes:
[0080] S41: If the initial state is open and the updated state is closed, determine the movement speed of the door towards the preset closed door direction according to the first timing duration.
[0081] S42: Perform conversion processing on the movement speed to determine the closing force level;
[0082] Specifically, since the shorter the first timing duration, the faster the closing speed. Thus, by constructing a corresponding mapping relationship among the first timing duration, the closing speed, and the closing force, the strength of the closing force can be determined according to the magnitude of the first timing duration, and then the closing force level can be determined. In addition, since the closing speed is equivalent to the angular velocity of rotational motion around the door axis, the faster the angular velocity, the greater the angular acceleration. From α = dω / dt, where α represents angular acceleration, ω represents acceleration, and t represents time, and according to Newton's second law, the force is equal to the product of the mass of the object and the acceleration. It can be obtained that the greater the angular acceleration of the door panel 2, the greater the force borne by the door panel 2.
[0083] S43: Evaluate the user's daily door-closing behavior according to the closing force level.
[0084] Specifically, the closing force level can be obtained through conversion using the first timing duration, and then, according to the closing force level, the daily door-closing behavior of users including the house owner and the tenant can be evaluated. For example, if the closing force is often large, it is evaluated that the user's daily door-closing behavior is abnormal. In addition, particularly implementable is that the house owner can know the tenant's daily door-closing behavior according to the closing force level information, so as to facilitate evaluating whether the tenant's behavior is proper. The tenant being informed of the closing force level information can also help correct the improper operation of excessive closing force.
[0085] Further preferably, step S43 further includes:
[0086] S431: Divide the closing force level into a large level, a medium level, and a small level, and count the total number of occurrences of different closing force levels within the preset number of days;
[0087] Specifically, for example, the closing force level can be determined as follows: when the first timing duration is 500 ms - 1 s, the obtained closing force level is a large level; when the first timing duration is 1 - 2 s, the obtained closing force level is a medium level; when the first timing duration is greater than 2 s, the obtained closing force level is a small level.
[0088] S432: When the total number of large levels is less than the preset total number, the user's daily door - closing behavior is evaluated as normal;
[0089] S433: When the total number of large levels is greater than the preset total number, the user's daily door - closing behavior is evaluated as abnormal, and the user is notified to maintain or replace the intelligent lock 1.
[0090] Specifically, based on the obtained closing force level information, the user's daily door - closing behavior can be evaluated accordingly, and the intelligent lock 1 can be maintained or replaced in a timely manner. This is not only beneficial to extending the service life of the intelligent lock 1 but also can timely replace the intelligent lock 1 whose working reliability may be reduced or even about to fail. Therefore, another embodiment of the detection and control method of the present invention can also be used for the purpose of lock replacement reminder.
[0091] As a further improvement, in addition to being used for the above - mentioned anti - theft purpose and lock replacement reminder purpose, as another embodiment, the detection and control method of the present invention can also be used for the purpose of preventing misoperation. Specifically, a countdown timer is set in the processor. After step S4 is implemented, that is, when the initial state of the door is open and the updated state is closed and the control drive mechanism 14 drives the locking member 15 to close the door, the countdown timer counts down for a preset countdown duration. If, within this preset countdown duration, steps S1 to S4 are executed again, that is, the initial state of the door is updated from the closed state to the open state and then to the closed state again, the processor determines that there is an abnormal door - opening and closing situation such as a child repeatedly opening and closing the door within a short time. When waiting for a predetermined delay duration and the updated state is closed, the drive of the lock tongue member is controlled to close the door. In this way, the adverse situation of the lock tongue member being repeatedly driven to close the door within a short time of the preset countdown duration can be avoided. For example, if the time interval between the first opening and closing of the door and the second opening and closing of the door is within the preset countdown duration, that is, the time interval is short, then the second drive of the locking member 15 is not rushed within a short time. When waiting for the predetermined delay duration and the updated state is closed, the second drive of the lock tongue member to close the door is controlled. Therefore, it helps to extend the service life of the locking member 15.
[0092] Embodiment 3
[0093] Please refer to Figure 4 , Embodiment 3 of the present invention provides a detection and control device for an intelligent lock, and the detection and control device includes:
[0094] A gravity sensor trigger acquisition module, configured to acquire the triggering condition of the gravity sensor;
[0095] An infrared sensor detection module, configured to detect the initial state of the door by the infrared sensor for the locking member 15;
[0096] A door updated state determination module, configured to update the initial state through the infrared sensor and determine the updated state of the locking member for the door;
[0097] A locking member driving module, configured to control the driving mechanism to drive the locking member 15 to close the door when the updated state is closed.
[0098] In an embodiment, the infrared sensor detection module includes:
[0099] A first reception result judgment sub-module, configured to judge the first reception result of the first infrared reception signal received on the first infrared receiver;
[0100] A second reception result detection sub-module, configured to judge the second reception result of the second infrared reception signal received on the second infrared receiver;
[0101] A first timer control sub-module, configured to start the first timer if the first reception result judgment sub-module determines that the first reception result is yes, that is, the first infrared receiver successfully receives the first infrared sensing signal, and stop the first timer and obtain the real-time first timing duration if the second reception result detection sub-module determines that the second reception result is yes, that is, the second infrared receiver successfully receives the second infrared sensing signal within a preset first waiting duration;
[0102] A second timer control sub-module, configured to start the second timer if the second reception result detection sub-module determines that the second reception result is yes, that is, the second infrared receiver successfully receives the second infrared sensing signal, and stop the second timer and obtain the real-time second timing duration if the first reception result judgment sub-module determines that the first reception result is yes, that is, the first infrared receiver successfully receives the first infrared sensing signal within a preset second waiting duration.
[0103] In an embodiment, the door updated state determination module includes:
[0104] An initial state determination sub-module, configured to determine that the initial state of the locking member for the door is the open state if the first timing duration is greater than the first duration threshold, and determine that the initial state of the locking member for the door is the closed state if the second timing duration is greater than the second duration threshold;
[0105] The status update determination sub-module, on the premise that the initial status determination sub-module determines that the initial status is the open status, if the first timing duration is greater than the first duration threshold, further determines that the updated status of the locking member for the door is the closed status; on the premise that the initial status determination sub-module determines that the initial status is the closed status, if the second timing duration is greater than the second duration threshold, further determines that the updated status of the locking member for the door is the open status.
[0106] In addition, a detection control device for an intelligent lock according to this embodiment further includes:
[0107] The door ajar status determination module, if the second infrared receiver fails to successfully obtain the second infrared sensing signal within a preset first waiting duration, identifies it as the door ajar status;
[0108] The door abnormal closing status determination module, if the first infrared receiver fails to successfully obtain the first infrared sensing signal within a preset second waiting duration, identifies it as the door abnormal closing status.
[0109] In one implementation manner, the door abnormal closing status determination module includes:
[0110] The door unlocked state determination sub-module is used to, if the first infrared receiver fails to successfully obtain the first infrared sensing signal within a preset second waiting duration and the number of times the second infrared receiver receives the second infrared sensing signal within the second waiting duration is one time, identify it as the door unlocked state;
[0111] The door stolen state determination sub-module is used to, if the first infrared receiver fails to successfully obtain the first infrared sensing signal within a preset second waiting duration and the number of times the second infrared receiver receives the second infrared sensing signal within the second waiting duration is greater than the number threshold, identify it as the door stolen state.
[0112] In addition, a detection control device for an intelligent lock according to this embodiment further includes:
[0113] The door closing movement speed determination module is used to, if the initial status is open and the updated status is closed, determine the movement speed of the door towards the preset door closing direction according to the first timing duration;
[0114] The door closing force level determination module is used to perform conversion processing on the movement speed to determine the door closing force level;
[0115] The door closing behavior evaluation module is used to evaluate the user's daily door closing behavior according to the door closing force level.
[0116] In one implementation manner, the door closing force level determination module further includes:
[0117] The closing force level classification and statistics sub-module classifies the closing force levels into large, medium, and small levels, and counts the total number of occurrences of different closing force levels within a preset number of days;
[0118] The large force level comparison and user evaluation sub-module is used to evaluate the user's daily door closing behavior as normal when the total number of the above large levels is less than the preset total; and is used to evaluate the user's daily door closing behavior as abnormal when the total number of the large levels is greater than the preset total, and notify the user to maintain or replace the smart lock.
[0119] Embodiment 4
[0120] Please refer to Figure 12 , The embodiment of the present invention provides a detection control device for a smart lock, which includes at least one processor, a gravity sensor, at least one memory, and computer program instructions stored in the memory. The gravity sensor is integrated on the processor. When the computer program instructions are executed by the processor, the detection control method of any one of the above Embodiment 2 is implemented.
[0121] Specifically, the above processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
[0122] The memory may include a mass storage for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In a suitable case, the memory may include a removable or non-removable (or fixed) medium. In a suitable case, the memory may be internal or external to the data processing device. In a specific embodiment, the memory is a non-volatile solid state memory. In a specific embodiment, the memory includes a read only memory (ROM). In a suitable case, the ROM may be a mask programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0123] The processor reads and executes the computer program instructions stored in the memory to implement any one of the detection control methods of the smart lock in the above embodiments.
[0124] In one example, the intelligent lock 1 may further include a communication interface and a bus. Among them, as Figure 12 shown, the processor, the memory, and the communication interface are connected through the bus and complete communication with each other.
[0125] The communication interface is mainly used to implement communication between various modules, devices, units, and / or devices in the embodiments of the present invention.
[0126] The bus includes hardware, software, or both, and couples the components of the intelligent lock 1 to each other. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses or a combination of two or more of these. In a suitable case, the bus may include one or more buses. Although the embodiments of the present invention describe and illustrate specific buses, the present invention contemplates any suitable bus or interconnect.
[0127] Embodiment 5
[0128] Embodiment 5 of the present invention provides a storage medium, which is a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the detection and control method of any one of the intelligent locks in Embodiment 2 above is implemented.
[0129] It should be clear that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order between steps after understanding the spirit of the present invention.
[0130] The functional blocks shown in the structural block diagrams described above can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a functional card, and so on. When implemented in software, the elements of the present invention are programs or code segments for performing the required tasks. The program or code segment can be stored in a machine-readable medium or transmitted via a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and so on. The code segment can be downloaded via a computer network such as the Internet, an intranet, and so on.
[0131] It should also be noted that in the exemplary embodiments mentioned in the present invention, some methods or systems are described based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be executed in the order mentioned in the embodiments, or different from the order in the embodiments, or several steps can be executed simultaneously.
[0132] As described above, the above is only the specific implementation manner of the present invention. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present invention.
Claims
1. Detection and control method for intelligent lock, characterized in that, The intelligent lock includes an infrared sensor, a gravity sensor, a driving mechanism, and a locking member. The driving mechanism is used to drive the locking member to move. The detection and control method includes: S1: Obtain the triggering situation on the gravity sensor; S2: If the gravity sensor is triggered, detect the initial state of the locking member with respect to the door through the infrared sensor; S3: Detect the triggering situation of the gravity sensor within a preset time period. If it is detected that the gravity sensor is triggered throughout the preset time period, update the initial state through the infrared sensor to determine the updated state of the locking member with respect to the door; S4: If the initial state is open and the updated state is closed, control the driving mechanism to drive the locking member to close the door.
2. The detection control method according to claim 1, characterized in that The intelligent lock includes a lock body. The infrared sensor includes a first infrared sensor and a second infrared sensor disposed on an outer side surface of the lock body. The first infrared sensor includes a first infrared emitter and a first infrared receiver. The second infrared sensor includes a second infrared emitter and a second infrared receiver. The outer side surface is parallel to the rotating end surface of the door panel for installing the intelligent lock. The first infrared receiver is used to receive the first infrared sensing signal emitted by the first infrared emitter. The second infrared receiver is used to receive the second infrared sensing signal emitted by the second infrared emitter. The locking member is used to open or close the door panel relative to the door frame. A reflection area is provided on the door frame. In the state where the door panel is closed relative to the door frame, the second infrared sensor is opposite to the reflection area. And in the direction of the door being rotated from open to closed, the first infrared sensor is located upstream of the second infrared sensor; The step S2 includes: S21: Obtain a first reception result of the first infrared receiver receiving the first infrared sensing signal and a second reception result of the second infrared receiver receiving the second infrared sensing signal; S22: Obtain a first timing duration corresponding to a first timer and a second timing duration corresponding to a second timer according to the first reception result and the second reception result; S23: Obtain a preset first duration threshold and a second duration threshold; S24: If the first timing duration is greater than the first duration threshold, the initial state of the locking member with respect to the door is open; S25: If the second timing duration is greater than the second duration threshold, the initial state of the locking member with respect to the door is closed.
3. The detection control method according to claim 2, characterized in that The step S22 includes: S221: According to the first reception result and the second reception result, if the first infrared receiver successfully receives the first infrared sensing signal, start the first timer; S222: If the second infrared receiver successfully receives the second infrared sensing signal within a preset first waiting duration, obtain the real-time first timing duration on the first timer; S223: According to the first reception result and the second reception result, if the second infrared receiver successfully receives the second infrared sensing signal, start the second timer; S224: If the first infrared receiver successfully receives the first infrared sensing signal within a preset second waiting duration, obtain the real-time second timing duration on the second timer.
4. The detection control method according to claim 3, characterized in that, The step S2 further includes: S26: If the second infrared receiver fails to successfully obtain the second infrared sensing signal within a preset first waiting duration, identify it as the state of the door being ajar. S27: If the first infrared receiver fails to successfully obtain the first infrared sensing signal within a preset second waiting duration, identify it as the state of the door being abnormally closed.
5. The detection control method according to claim 4, wherein The step S27 includes: S271: If the first infrared receiver fails to successfully obtain the first infrared sensing signal within a preset second waiting duration and the number of times the second infrared receiver receives the second infrared sensing signal within the second waiting duration is one, identify it as the state of the door being open. S272: If the first infrared receiver fails to successfully obtain the first infrared sensing signal within a preset second waiting duration and the number of times the second infrared receiver receives the second infrared sensing signal within the second waiting duration is greater than the number threshold, identify it as the state of the door being stolen.
6. The detection control method according to claim 1, wherein The step S4 includes: S41: If the initial state is open and the updated state is closed, determine the movement speed of the door towards the preset door-closing direction based on the first timing duration. S42: Perform a conversion process on the movement speed to determine the door-closing force level. S43: Evaluate the user's daily door-closing behavior based on the door-closing force level.
7. The detection control method according to claim 6, characterized in that The step S43 further includes: S431: Divide the door-closing force level into a large level, a medium level, and a small level, and count the total number of occurrences of different door-closing force levels within a preset number of days. S432: When the total number of the above large levels is less than the preset total number, evaluate the user's daily door-closing behavior as normal. S433: When the total number of the large levels is greater than the preset total number, evaluate the user's daily door-closing behavior as abnormal, and notify the user to maintain or replace the smart lock.
8. The detection and control device of the intelligent lock, characterized in that, Includes: A gravity sensor trigger acquisition module for acquiring the trigger situation of the gravity sensor. An infrared sensor detection module for the infrared sensor to detect the initial state of the locking member on the door. A door updated state determination module for updating the initial state through the infrared sensor to determine the updated state of the locking member on the door. A locking member driving module for controlling the driving mechanism to drive the locking member to close the door when the updated state is closed.
9. Smart lock, characterized in that, Includes: At least one processor, a gravity sensor, an infrared sensor, a driving mechanism, a locking member, at least one memory, and computer program instructions stored in the memory, which implement the detection control method according to any one of claims 1-7 when the computer program instructions are executed by the processor.
10. A storage medium having computer program instructions stored thereon, characterized in that, When the computer program instructions are executed by the processor, implement the detection control method according to any one of claims 1-7.