Alarm control method and device of door lock, door lock and storage medium
By detecting the first switch status and password information of the door lock, the problem of accidental alarm triggering during the installation of smart door locks is solved, enabling more accurate alarm control and improving the security and practicality of the door lock.
Patent Information
- Application Number
- CN202410279368.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-12
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2044-03-12
AI Technical Summary
Existing smart door locks are prone to accidentally triggering anti-pry alarms during installation, resulting in unnecessary alarm signal output.
By detecting the first switch status of the door lock, it is determined whether the front panel is pressed tightly. Based on the password information, it is determined whether the door lock has an unlocking password. If there is no password, no alarm signal is output.
Accurately determining whether the door lock is installed or in the process of installation avoids accidental triggering of the anti-pry alarm, thus improving the security and practicality of the door lock.
Smart Images

Figure CN118148438B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of lock technology, and in particular to an alarm control method, device, lock and storage medium for a door lock. Background Technology
[0002] With the development of technology, many people choose to install smart door locks for convenient access. Some smart door locks have built-in lithium batteries, and for these smart door locks, a power switch needs to be designed so that the smart door lock can be in a power-off state when stored, to prevent the built-in lithium battery from running out of power before the door lock is installed.
[0003] In related technologies, the power switch is generally installed on the front or back of the rear panel of the smart lock, and the front panel of the smart lock is also equipped with an anti-pry switch. When installing the smart lock, the main body of the smart lock needs to be installed on the door panel first. At this time, the front and rear panels of the smart lock are not installed or not fastened. Then, plug in the wires and turn on the power switch to power on the smart lock. Finally, install and fasten the front and rear panels of the smart lock. This completes the installation of the smart lock.
[0004] However, because the front panel was not properly secured and the anti-tamper switch was not pressed down during installation, the anti-tamper alarm will be triggered after the door lock is powered on, and the alarm needs to be reset by other means after installation. It is evident that the relevant technical solution is prone to false triggering of the anti-tamper alarm. Summary of the Invention
[0005] To address the aforementioned technical problems, this disclosure provides an alarm control method, device, door lock, and storage medium for a door lock.
[0006] The first aspect of this disclosure provides an alarm control method for a door lock, applied to a door lock; the method includes:
[0007] The first switch state of the first switch of the door lock is detected. The first switch is installed on the front panel of the door lock. The first switch state is used to indicate whether the front panel of the door lock is pressing the first switch.
[0008] Based on the indication from the first switch state that the front panel is not pressing the first switch, the password information of the door lock is determined;
[0009] If the password information indicates that the door lock does not have an unlocking password, then no alarm signal will be output.
[0010] Optionally, the method further includes:
[0011] If the password information indicates that the door lock contains the unlocking password, an alarm signal is output.
[0012] Optionally, after outputting the alarm signal, the method further includes:
[0013] In response to the door lock's reset device being triggered within a preset time period, a first prompt message is output, which is used to remind the user to enter a password;
[0014] Retrieve and verify the password entered by the user;
[0015] If the password to be verified is successfully verified, the output of the alarm signal will stop.
[0016] Optionally, detecting the first switch state of the first switch of the door lock includes:
[0017] Detect the target voltage level of the first switch;
[0018] Based on the fact that the target level meets the preset level range, it is determined that the first switch state indicates that the front panel presses the first switch;
[0019] If the target level does not meet the preset level range, then it is determined that the first switch state indicates that the front panel is not pressing the first switch.
[0020] Optionally, detecting the first switch state of the first switch of the door lock includes:
[0021] The target level of the first switch is detected once at a preset time interval, and the target number is recorded and updated. The target number is used to characterize the number of times the target level does not meet the preset level range consecutively.
[0022] If the target number of times equals a preset threshold, then stop detecting the target level and determine that the first switch state indicates that the front panel is not pressing the first switch;
[0023] If the target number of times is less than the preset threshold, then the first switch state is determined to indicate that the front panel presses the first switch.
[0024] Optionally, based on the password information indicating that the door lock does not have an unlocking password, the method further includes:
[0025] Output a second prompt message, which reminds the user that they need to set an unlock password.
[0026] Optionally, before detecting the open / closed state of the first switch of the door lock, the method further includes:
[0027] The door lock is powered on when the second switch is in the closed state. The second switch is installed on the back of the rear panel of the door lock.
[0028] A second aspect of this disclosure also provides an alarm control device for a door lock, applied to a door lock, the device comprising:
[0029] The detection module is used to detect the first switch state of the first switch of the door lock. The first switch is installed on the front panel of the door lock. The first switch state is used to indicate whether the front panel of the door lock is pressing the first switch.
[0030] The determination module is used to determine the password information of the door lock based on the indication from the first switch state that the front panel is not pressing the first switch;
[0031] The output module is used to indicate that the door lock does not have an unlocking password based on the password information, and therefore does not output an alarm signal.
[0032] A third aspect of this disclosure also provides a door lock, the door lock comprising at least: a memory, a processor, a front panel, and a first switch; the memory stores a computer program executable on the processor, the processor executing the computer program to implement the steps of the alarm control method for the door lock according to any one of the first aspects; the first switch is mounted on the front panel and connected to the processor; the front panel is used to press the first switch.
[0033] A fourth aspect of this disclosure also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the alarm control method for the door lock described in the first aspect.
[0034] The technical solution provided in this disclosure has the following advantages compared with the prior art:
[0035] This disclosure provides an alarm control method for a door lock. By detecting the state of the first switch of the door lock, it can accurately determine whether the front panel of the door lock is pressed against the first switch, thereby determining whether the door lock has been pried open or whether there is a risk of prying. If the state of the first switch indicates that the front panel is not pressed against the first switch, the password information of the door lock is determined, which can accurately determine whether the door lock is fully installed and / or whether the door lock is in the process of installation.
[0036] Based on the password information indicating that the lock does not have an unlocking code, it can be determined that the lock is not yet fully installed, is still in the installation process, or does not currently need to be in anti-pry mode, therefore no alarm signal is output. Thus, even if the front panel is not properly fastened or the first switch is not pressed down during the lock installation process, no alarm signal will be output because the lock has not been set with a password.
[0037] This solves the problem of door locks easily triggering the anti-pry alarm. Attached Figure Description
[0038] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0039] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 A flowchart illustrating an alarm control method for a door lock provided in an embodiment of this disclosure;
[0041] Figure 2 A flowchart illustrating another door lock alarm control method provided in this embodiment of the present disclosure;
[0042] Figure 3 A flowchart illustrating another door lock alarm control method provided in this embodiment of the present disclosure;
[0043] Figure 4 A flowchart illustrating another door lock alarm control method provided in this embodiment of the present disclosure;
[0044] Figure 5 This is a schematic diagram of the connection of a first switch provided in an embodiment of the present disclosure;
[0045] Figure 6 A flowchart illustrating another door lock alarm control method provided in this embodiment of the present disclosure;
[0046] Figure 7 A schematic diagram of the structure of an alarm control device for a door lock provided in an embodiment of this disclosure;
[0047] Figure 8 This is a schematic diagram of the structure of a door lock provided in an embodiment of the present disclosure;
[0048] Figure 9 This is a schematic diagram of another door lock provided in an embodiment of the present disclosure. Detailed Implementation
[0049] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0050] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0051] Typically, the power switch on a smart lock can be installed on the front or back of the rear panel, and the front panel also has an anti-pry switch. When installing a smart lock, first install the lock body onto the door panel. At this point, the front and rear panels are not installed or securely fastened. Then, plug in the power cord and turn on the power switch to power on the smart lock. Finally, install and secure the front and rear panels. This completes the installation of the smart lock.
[0052] However, because the front panel was not properly secured and the anti-tamper switch was not pressed down during installation, the anti-tamper alarm will be triggered after the door lock is powered on, and the alarm needs to be reset by other means after installation. It is evident that the relevant technical solution is prone to false triggering of the anti-tamper alarm.
[0053] To address this issue, this disclosure provides an alarm control method, device, lock, and storage medium for a door lock. By detecting the state of the first switch of the door lock's first switch, and based on this state indicating that the front panel is not pressed down, the lock's password information is determined. If the password information indicates that the lock does not have an unlocking password, no alarm signal is output. Thus, even if the front panel is not properly secured or the first switch is not pressed down during installation, no alarm signal will be output because the lock does not have an unlocking password. This solves the problem of accidental triggering of the anti-pry alarm by the door lock.
[0054] The door lock in this embodiment may include at least a processor, a first switch, a front panel, and a door lock body.
[0055] The processor may have functions such as processing, control, and communication, and can be used to execute the steps in the door lock alarm control method provided in the embodiments of this disclosure.
[0056] The first switch can be installed on the back of the front panel as a pry-proof switch.
[0057] The front panel can be installed on the lock body to protect it.
[0058] In some embodiments, the door lock may further include any possible functional modules such as a doorbell, a password input module, an NFC recognition module, a fingerprint recognition module, and a key unlocking module, and each functional module may have a corresponding trigger area on the front panel. This disclosure does not limit the scope of the invention.
[0059] In some embodiments, the door lock may further include a communication unit for communicating and interacting with other devices. For example, the communication unit may be a Bluetooth device, an infrared device, a WiFi device, etc. In this case, the user can trigger a remote control or terminal device to output corresponding instructions to the communication unit, and then the communication device can send the instructions to the processor, which will then parse and execute the instructions to control other components or units in the door lock. This disclosure does not limit the scope of the embodiments.
[0060] It is understood that the door lock may also include other components for realizing other arbitrary functions. For example, the door lock may also include any possible components such as a back panel, power supply device, reminder device, and self-test device. This disclosure does not limit this.
[0061] The alarm control method for door locks provided in this disclosure will be described exemplarily below with reference to the accompanying drawings.
[0062] For example, Figure 1 This is a flowchart illustrating an alarm control method for a door lock provided in this disclosure, which can be executed by a processor in the aforementioned door lock. See also... Figure 1 The alarm control method for door locks provided in this embodiment may include:
[0063] Step 110: Detect the first switch status of the first switch of the door lock.
[0064] The first switch is installed on the front panel of the door lock. Specifically, to ensure that the front panel can press the first switch firmly after the door lock is installed, the first switch can be installed on the back of the front panel.
[0065] Specifically, the front panel can refer to the panel of the lock located on the outside of the door after the lock has been correctly installed. The back of the front panel can refer to the side of the front panel facing the lock body.
[0066] In this embodiment, the first switch state is used to indicate whether the front panel of the door lock is pressed against the first switch.
[0067] For example, the state of the first switch can be detected in any possible way, such as by detecting the level signal corresponding to the first switch.
[0068] For example, if the front panel presses down on the first switch and the corresponding voltage level of the first switch is high, then when the voltage level of the corresponding voltage level of the first switch is detected to change to low, it can be determined that the front panel is not pressing down on the first switch. Conversely, if the front panel presses down on the first switch and the corresponding voltage level of the first switch is low, then when the voltage level of the corresponding voltage level of the first switch is detected to change to high, it can be determined that the front panel is not pressing down on the first switch. The specific configuration can be determined by a person skilled in the art based on the connection relationship between the first switch and other components, the installation method of the first switch and the front panel, and actual needs; this disclosure does not limit this.
[0069] It is worth noting that, under normal circumstances, since the first switch is usually installed on the back of the front panel, when the lock is properly installed, the front panel will be firmly attached to the lock body, simultaneously pressing the first switch. However, if the lock is pried open or not fully installed, the front panel may not be pressing the first switch firmly.
[0070] In other words, if the first switch status indicates that the front panel of the door lock is pressed against the first switch, it means that the door lock is in a normal state and has not been pried open. If the first switch status indicates that the front panel of the door lock is not pressed against the first switch, it means that the front panel of the door lock may have been pried open or there is a risk of it being pried open.
[0071] It is worth noting that since the state of the first switch indicates whether the front panel is pressed against the first switch, this state can be used to determine whether the door lock has been pried open or whether there is a risk of it being pried open. Therefore, accurately detecting the state of the first switch facilitates the execution of subsequent steps.
[0072] Step 120: Based on the indication that the first switch status indicates that the front panel is not pressed down, the password information of the door lock is determined.
[0073] In this embodiment, the password information of the door lock can be used to indicate whether the door lock currently has an unlocking password set.
[0074] Generally, the unlocking password is set by the user after the lock is installed. Specifically, the user can set it by triggering a button or display module on the lock, or by triggering a terminal device that can establish a communication connection with the lock.
[0075] In this embodiment, the unlocking password can be in any possible form. For example, the unlocking password can be a string composed of numbers and / or letters, a fingerprint, NFC, a face, or any other type of password. This embodiment does not limit this.
[0076] It is worth noting that, generally, the unlocking code is only set after the lock has been installed and powered on. Therefore, by determining the lock's code, one can accurately determine whether the lock has been fully installed and / or whether it is currently being installed.
[0077] Step 130: If the password information indicates that the door lock does not have an unlocking password, then no alarm signal will be output.
[0078] In this embodiment, the alarm signal can be any possible form of information, such as sound, light, or text. The specific settings can be configured according to the door lock's structure and actual needs.
[0079] For example, if the door lock includes an audio output unit, then the alarm signal can be an audio signal. If the door lock includes a light unit, then the alarm signal can be a light signal. If the door lock includes a communication module, then the alarm signal can be text information that can be sent to other terminal devices via the communication module. This disclosure does not limit the scope of the alarm signal.
[0080] It's worth noting that if the lock doesn't have the required unlocking code, it indicates that the lock is not yet fully installed or is still in the installation process, or that the lock doesn't currently need to be in anti-pry (or anti-theft) mode. Therefore, if it's determined that the lock doesn't have the required unlocking code, the alarm signal will not be output to avoid false alarms.
[0081] In this embodiment of the present disclosure, by detecting the first switch state of the first switch of the door lock, and based on the first switch state indicating that the front panel is not pressed down on the first switch, the password information of the door lock is determined. Based on the password information indicating that the door lock does not have an unlocking password, no alarm signal is output.
[0082] Specifically, detecting the first switch status of the door lock's first switch can accurately determine whether the front panel of the door lock is pressed firmly against the first switch, thereby determining whether the door lock has been pried open or whether there is a risk of it being pried open. If the first switch status indicates that the front panel is not pressed firmly against the first switch, then the door lock's password information can be determined, which can accurately determine whether the door lock is fully installed and / or whether the door lock is in the process of installation.
[0083] If the password information indicates that the lock does not have an unlocking code, it can be determined that the lock is not yet fully installed, is still in the installation process, or does not currently need to be in anti-pry mode, and therefore no alarm signal is output. Thus, even if the front panel is not properly fastened or the first switch is not pressed down during the lock installation process, no alarm signal will be output because the lock has not been set with a password.
[0084] This solves the problem of door locks easily triggering the anti-pry alarm.
[0085] In one possible implementation, see [link to relevant documentation]. Figure 2 The method also includes:
[0086] Step 140: Based on the password information indicating that the door lock has the unlocking password, an alarm signal is output.
[0087] In this embodiment, the alarm signal can be output continuously or intermittently, and the specific settings can be configured according to actual needs.
[0088] It is worth noting that if the door lock has the unlocking code, it indicates that the door lock has been installed correctly or is currently in anti-pry (or anti-theft) mode. Therefore, if the door lock has the unlocking code, an alarm signal needs to be output so that the door lock can promptly and reliably output alarm information to alert the user if the front panel of the door lock is not fastened or has been pried open, resulting in the first switch not being pressed.
[0089] This improves the security of the door lock and the practicality of its alarm control method.
[0090] In one possible implementation, see [link to relevant documentation]. Figure 3 After outputting the alarm signal, the method also includes:
[0091] Step 150: In response to the door lock's reset device being triggered within a preset time period, the first prompt message is output.
[0092] In this embodiment, the preset duration can be set by relevant technicians or users according to actual needs. Generally, the preset duration is shorter than the duration of the alarm signal output.
[0093] For example, if the start time of outputting the alarm signal is taken as the start time and the end time of outputting the alarm signal is taken as the end time, and the duration between the start time and the end time is 60 seconds (s), then the preset duration can be 10s, 15s, or other durations less than 60s.
[0094] In this embodiment, the reset device can be used to stop the door lock from outputting the alarm information. The reset device can be a button or a touch device, and this disclosure does not limit it to this type.
[0095] In this embodiment, the first prompt message is used to remind the user to enter a password, and the first prompt message can be one or more of the following: sound type, light type, and text type.
[0096] It is worth noting that, to prevent other people from easily triggering the reset device, it can be installed on the rear panel of the door lock, either on the front or back. This improves the security and usability of the door lock.
[0097] Step 160: Obtain and verify the password entered by the user.
[0098] In this embodiment, the password to be verified can be entered by the user by triggering a physical or virtual button on the front panel of the door lock, or it can be sent to the door lock by the user by triggering a terminal device connected to the door lock, or it can be actively acquired by an image acquisition device installed on the door lock. This embodiment does not limit the specific method used.
[0099] For example, after performing step 150, the door lock may only acquire the password to be verified within a short waiting period, and after the waiting period, the door lock will no longer acquire the password to be verified.
[0100] The waiting time can be set according to actual needs, and the waiting time is less than the duration of the alarm signal output, or the sum of the waiting time and the preset duration is less than the duration of the alarm signal output. For example, if the duration of the alarm signal is 45 seconds, then the preset duration can be 15 seconds, and the waiting time can be 10 seconds or 15 seconds. This avoids the situation where the door lock has stopped outputting the alarm signal when the reset device is triggered and the password to be verified is obtained, thereby improving the practicality of the door lock's alarm control method.
[0101] In this embodiment, after receiving the password to be verified, the password can be parsed to determine its type, and then any possible verification method can be selected to verify the password based on its type.
[0102] For example, if the password to be verified is a face, then the corresponding face recognition algorithm can be called to verify the password. If the password to be verified is a string, then the corresponding string difference comparison algorithm can be called to verify the password. This disclosure does not limit the scope of the verification.
[0103] Step 170: In response to the password being verified, stop outputting the alarm signal.
[0104] It is worth noting that if the password to be verified is successful, it indicates that the password entered by the user is correct, thus confirming that the user currently operating the lock has the authority to open it. In other words, in this case, it can be determined that the touch was likely accidental, and therefore the alarm signal can be stopped. This improves the flexibility and practicality of the lock's alarm control method.
[0105] In one possible implementation, see [link to relevant documentation]. Figure 4 Detecting the first switch state of the first switch of the door lock, including:
[0106] Step 1101: Detect the target level of the first switch.
[0107] In this embodiment, the target level can be used to characterize whether the first switch is in an open or closed state.
[0108] Specifically, the target level can be detected through a specific pin on the processor, or the target level can be detected by other components and then output to the processor. This disclosure does not limit this approach.
[0109] In this embodiment, the target level can be continuously detected, or the target level can be detected only when the level corresponding to the first switch changes.
[0110] Understandably, the state of the first switch when the front panel of the door lock is pressed down is different from the state of the first switch when the front panel of the door lock is not pressed down. For example, if the first switch is in a closed state when the front panel of the door lock is pressed down, then the first switch is in an open state when the front panel of the door lock is pressed down, which can cause the target voltage level of the first switch to change.
[0111] Step 1102: Based on the fact that the target level meets the preset level range, the first switch state is determined to indicate that the front panel is pressing the first switch.
[0112] In this embodiment, the preset level range can be set in advance by relevant technicians according to the specific structure of the door lock and actual needs.
[0113] For example, suppose that when the front panel presses against the first switch, the first switch is in a closed state, and the corresponding voltage level when the first switch is in a closed state is low. Then, the preset voltage level range can include lower voltage levels.
[0114] For example, suppose that when the front panel presses against the first switch, the first switch is in a closed state, and the voltage level corresponding to the first switch being in a closed state is high. Then, the preset voltage level range can include higher voltage levels.
[0115] Step 1103: Based on the fact that the target level does not meet the preset level range, it is determined that the first switch state indicates that the front panel is not pressing the first switch.
[0116] Understandably, as mentioned in step 1102, the preset level range is set according to the structure of the door lock. Therefore, assuming that when the front panel presses against the first switch, the first switch is in a closed state, and the corresponding level when the first switch is in a closed state is a low level, then the preset level range can include lower level values.
[0117] In this case, if the currently detected target level is high, and it is determined that the high level exceeds the preset level range, it can be determined that the first switch is currently in the open state and the front panel is not pressing the first switch.
[0118] For example, assuming that when the front panel presses down on the first switch, the first switch is in the open state, and the corresponding level when the first switch is in the open state is a high level, then the preset level range can include higher level values.
[0119] In this case, if the currently detected target level is low, and it is determined that the low level exceeds the preset level range, it can be determined that the first switch is currently in a closed state and the front panel is not pressing the first switch.
[0120] It is worth noting that the examples in this embodiment are merely for illustrating the relationship between the target level, the preset level range, and the first switch state, and do not represent that the alarm control method for the door lock provided in this disclosure can only set the preset level range and / or the correspondence between the target level and the first switch state in the way shown in the examples. This disclosure does not limit this aspect.
[0121] It is worth noting that the target level is detected in step 1101, and the target level is compared with the preset level range in steps 1102 and 1103. In this way, the first switch state can be accurately determined by the target level.
[0122] To clearly illustrate the principle of determining the state of the first switch based on its target level, this disclosure also provides a possible connection diagram of the first switch. See details... Figure 5 , Figure 5The processor M, resistor R1, resistor R2, first switch S1, and capacitor C are shown.
[0123] Specifically, the detection pin of the processor M is connected to the first plate of the capacitor C and the first end of the resistor R1, respectively. The second end of the resistor R1 is connected to the first end of the resistor R2 and the first end of the first switch S1, respectively. The second end of the resistor R2 is used to input a 3.3V working voltage. The second plate of the capacitor C and the second end of the first switch S1 are grounded.
[0124] For example, assuming the front panel of the door lock is correctly installed and the first switch S1 is pressed down by the front panel, the first switch S1 is in the closed state. At this time, since the other end of the first switch S1 is grounded, the voltage of the detection pin of the processor M is pulled low, so the detected level is high. If the front panel is not fastened or is pried open, causing the front panel to not press the first switch S1 down, the first switch S1 will become open. At this time, since the 3.3V operating voltage will pull up the voltage of the detection pin of the processor M, so the detected level is high.
[0125] In this case, the preset level range can be set to include a lower level value. Therefore, when the target level is detected to be high, it can be determined that the target level does not meet the preset level range, and thus the first switch state indicates that the front panel is not pressing the first switch.
[0126] In one possible implementation, see [link to relevant documentation]. Figure 6 Detecting the first switch state of the first switch of the door lock, including:
[0127] Step 1104: Detect the target level of the first switch at preset time intervals, record and update the target count.
[0128] In this embodiment, the preset time can be set by relevant technical personnel according to actual needs. Generally, the preset time can be set to a shorter time, such as 10 milliseconds (ms).
[0129] Alternatively, in this embodiment, the target level can be continuously detected according to step 1104 after the door lock is powered on. Or, after the door lock is powered on, the target level can be continuously detected until a target level that does not meet the preset level range is detected, after which the target level is detected intermittently according to step 1104. This embodiment does not limit the scope of the invention.
[0130] In this embodiment, the target count is used to characterize the number of times the target level continuously fails to meet the preset level range. Furthermore, the target count needs to be recorded and updated after each detection of the target level.
[0131] Generally, the target count can be updated by either incrementing it by 1 or resetting it to 0.
[0132] For example, if the current target count is 10, then when the target level is detected to be outside the preset level range the next time, the target count can be updated to 11. And when the target level is detected to be within the preset level range the next time, the target count can be updated to 0.
[0133] In this way, not only can the number of times the target level of the first switch fails to meet the preset level range be accurately determined, but since the first switch state can be indicated when the target level fails to meet the preset level range, the first switch state can also be accurately determined based on the number of times the target level fails to meet the preset level range.
[0134] Step 1105: Based on the target number being equal to a preset threshold, stop detecting the target level and determine that the first switch state indicates that the front panel is not pressing the first switch.
[0135] In this embodiment, the preset threshold can be set according to actual needs. Generally, the preset threshold can be set to a smaller value to avoid too many intervals of detecting the target level, which would lead to too long a time to determine the first switch state.
[0136] It is understandable that if the target number of times is equal to the preset threshold, it indicates that the door lock does not meet the preset level range for a long period of time, that is, the front panel of the door lock has not pressed the first switch for a long time.
[0137] It is worth noting that since the front panel is not pressed against the first switch when the target number is equal to the preset threshold, it indicates that the front panel is not fastened or pried open. Therefore, there is no need to detect the target level intermittently according to the preset time, which can save power appropriately.
[0138] Alternatively, after stopping the detection of the target level, a certain period of time can be waited before resuming continuous or intermittent detection of the target level. Alternatively, the target level count can be reset to 0 at the same time as stopping detection, so that the number of consecutive times the target level fails to meet the preset level range can be recorded again during the next detection.
[0139] Step 1106: Based on the fact that the target number is less than the preset threshold, the first switch state is determined to indicate that the front panel is pressing the first switch.
[0140] It is understandable that if the target number is less than the preset threshold, it indicates that the door lock is only fluctuating for a short period of time, resulting in a failure to meet the preset level range.
[0141] It is worth noting that during the detection of the target level, if the target level only deviates from the preset level range a few times within a short period of time and then returns to normal, it indicates that there may be issues such as accidental touch or unstable operating voltage causing fluctuations in the target level. Therefore, a situation where the number of consecutive times the target level deviates from the preset level range is less than the preset threshold can be considered an accidental touch or malfunction.
[0142] This avoids the problem of the door lock outputting an alarm signal due to accidental touch or unstable operating voltage in a short period of time, thereby improving the flexibility and practicality of the door lock's alarm control method.
[0143] In one possible implementation, the method further includes indicating that the lock does not have an unlocking password based on the password information.
[0144] Output the second prompt message.
[0145] In this embodiment, the second prompt message is used to remind the user that they need to set an unlock password.
[0146] The second prompt message can be any type of information such as light, sound, or text. The second prompt message can be output directly through the light unit, audio output unit, and / or display unit of the door lock, or it can be output by sending the second prompt message to a terminal device connected to the door lock. This disclosure does not limit this.
[0147] It is worth noting that when the first switch status indicates that the front panel is not pressed down and the password information indicates that the lock does not have an unlocking password, it means that the lock is not currently installed, is in the installation process, or is not in anti-pry (or anti-theft) mode. Therefore, the second prompt message can be output to remind the user to set a password for the lock, thereby improving the lock's security.
[0148] In one possible implementation, before detecting the open / closed state of the first switch of the door lock, the method further includes:
[0149] Since the second switch of the door lock is in the closed state, the door lock is powered on.
[0150] The second switch is the power switch for the door lock, and it is installed on the back of the rear panel of the door lock.
[0151] Specifically, the rear panel can refer to the panel inside the door lock after the lock has been correctly installed. The back of the rear panel can refer to the side of the rear panel facing the lock body.
[0152] Under normal circumstances, when the power switch is off, the lock's power supply cannot power other components. Only when the power switch is closed can the lock be powered normally. Therefore, when the lock's second switch is closed, the lock's processor can be powered on and thus control the power supply to other units of the lock.
[0153] It is worth noting that since this second switch is the power switch for the door lock, if it is installed on the front panel of the door lock, it can be easily turned off by other people, causing the door lock to lose power and lose its anti-theft function. If the second switch is installed on the front of the rear panel, it may be easier for users to accidentally activate it during daily use.
[0154] Therefore, installing the second switch on the back of the rear panel not only prevents users from accidentally activating it, but also increases the difficulty for others to open the door from the outside. This enhances the security of the door lock.
[0155] Based on the above embodiments and the same inventive concept, this disclosure also provides an alarm control device for a door lock.
[0156] For example, Figure 7 This is a schematic diagram of the structure of an alarm control device for a door lock according to an embodiment of this disclosure. See also... Figure 7 This device is used in door locks and includes:
[0157] The detection module 201 is used to detect the first switch state of the first switch of the door lock.
[0158] The first switch is installed on the front panel of the door lock, and the state of the first switch is used to indicate whether the front panel of the door lock is pressed against the first switch.
[0159] The determination module 202 is used to determine the password information of the door lock based on the indication that the front panel is not pressed down on the first switch state.
[0160] The output module 203 is used to indicate that the door lock does not have an unlocking password based on the password information, and therefore does not output an alarm signal.
[0161] In one possible embodiment, the device may also include a verification module.
[0162] The output module 203 can also be used to output a first prompt message in response to the door lock's reset device being triggered within a preset time period.
[0163] This verification module is used to obtain and verify the password entered by the user.
[0164] The output module 203 can also be used to stop outputting the alarm signal in response to the password being verified.
[0165] It is understood that the alarm control device for door locks provided in this embodiment can implement the steps of any of the door lock alarm control methods provided in the above embodiments, and has corresponding beneficial effects, which will not be elaborated here.
[0166] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).
[0167] This disclosure also provides a door lock, see [link to relevant documentation] Figure 8 The door lock includes at least: a processor 301, a memory 302, a front panel 303, and a first switch 304.
[0168] The memory 302 stores a computer program that can run on the processor 301. When the processor 301 executes the computer program, it implements the steps of the door lock alarm control method provided in any of the above embodiments.
[0169] The first switch 304 is mounted on the front panel 303 and is connected to the processor 301. The front panel 303 is used to press the first switch 304.
[0170] For example, to facilitate understanding of the structure of the door lock provided in the embodiments of this disclosure, a schematic diagram of the door lock structure is also provided. The door lock includes at least a front panel and a rear panel. See also... Figure 9 , Figure 9A door lock 400 is shown, and the front panel 401 of the door lock 400 has trigger areas corresponding to modules such as a doorbell, a password input module, and a fingerprint recognition module. A first switch 405 is installed on the back panel 402 of the front panel. Therefore, after the front panel of the door lock 400 is correctly installed, the front panel can press the first switch 405. When the front panel of the door lock 400 is not pressed or is pried open, the front panel cannot press the first switch 405. In this way, the target voltage level corresponding to the first switch 405 can accurately indicate whether the front panel is pressing the first switch 405.
[0171] In addition, the front 403 of the rear panel of the door lock 400 includes components such as a battery cover and a deadbolt knob. A second switch 406 is installed on the back 404 of the rear panel. Specifically, during the installation of the door lock, closing the second switch 406 allows the power supply of the door lock 400 to power other components. Furthermore, during transportation or storage of the door lock 400, opening the second switch 406 can prevent the door lock 400 from continuously consuming electrical energy.
[0172] In some embodiments, the door lock 400 may also include components such as a power supply unit, a display unit, and / or a communication unit.
[0173] In some possible implementations, the door lock 400 may also include other structural components known to those skilled in the art, which are not limited in this disclosure.
[0174] This disclosure also provides a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the steps of the alarm control method for door locks provided in any of the above embodiments.
[0175] In some embodiments, this disclosure also provides a program product, such as a computer-readable storage medium, including a program that, when executed by a processor, performs an embodiment of the alarm control method for any of the above-described door locks.
[0176] In the several embodiments provided in this disclosure, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0177] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0178] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.
[0179] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0180] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0181] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to these embodiments, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An alarm control method for a door lock, characterized in that, Applied to door locks; the method includes: The first switch state of the first switch of the door lock is detected. The first switch is installed on the front panel of the door lock. The first switch state is used to indicate whether the front panel of the door lock is pressing the first switch. Based on the indication from the first switch state that the front panel is not pressing the first switch, the password information of the door lock is determined; If the password information indicates that the door lock does not have an unlocking password, then no alarm signal will be output.
2. The alarm control method for a door lock according to claim 1, characterized in that, The method further includes: If the password information indicates that the door lock contains the unlocking password, an alarm signal is output.
3. The alarm control method for a door lock according to claim 2, characterized in that, After the output alarm signal, the method further includes: In response to the door lock's reset device being triggered within a preset time period, a first prompt message is output, which is used to remind the user to enter a password; Retrieve and verify the password entered by the user; If the password to be verified is successfully verified, the output of the alarm signal will stop.
4. The alarm control method for a door lock according to claim 1, characterized in that, The detection of the first switch state of the first switch of the door lock includes: Detect the target voltage level of the first switch; Based on the fact that the target level meets the preset level range, it is determined that the first switch state indicates that the front panel presses the first switch; If the target level does not meet the preset level range, then it is determined that the first switch state indicates that the front panel is not pressing the first switch.
5. The alarm control method for a door lock according to claim 1, characterized in that, The detection of the first switch state of the first switch of the door lock includes: The target level of the first switch is detected once at a preset time interval, and the target number is recorded and updated. The target number is used to characterize the number of times the target level does not meet the preset level range consecutively. If the target number of times equals a preset threshold, then stop detecting the target level and determine that the first switch state indicates that the front panel is not pressing the first switch; If the target number of times is less than the preset threshold, then the first switch state is determined to indicate that the front panel presses the first switch.
6. The alarm control method for a door lock according to claim 1, characterized in that, Based on the password information indicating that the door lock does not have an unlocking password, the method further includes: Output a second prompt message, which reminds the user that they need to set an unlock password.
7. The alarm control method for a door lock according to any one of claims 1-6, characterized in that, Before detecting the first switch state of the first switch of the door lock, the method further includes: The door lock is powered on when the second switch is in the closed state. The second switch is installed on the back of the rear panel of the door lock.
8. An alarm control device for a door lock, characterized in that, Applied to door locks, the device includes: The detection module is used to detect the first switch state of the first switch of the door lock. The first switch is installed on the front panel of the door lock. The first switch state is used to indicate whether the front panel of the door lock is pressing the first switch. The determination module is used to determine the password information of the door lock based on the indication from the first switch state that the front panel is not pressing the first switch; The output module is used to indicate that the door lock does not have an unlocking password based on the password information, and therefore does not output an alarm signal.
9. A door lock, characterized in that, The door lock includes at least: a memory, a processor, a front panel, and a first switch; the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the steps of the method described in any one of claims 1 to 7; the first switch is mounted on the front panel and is connected to the processor; the front panel is used to press the first switch.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Puzzle alarm lock for one or double door
CN2052022U
Electronic alarm anti-theft door
CN2444047Y