Method for restoring password through pry-resistant switch and intelligent door lock
The method of recovering passwords by using anti-tamper switches solves the problem of users being unable to retrieve their management passwords after forgetting them, thereby improving security and convenience and reducing processing costs for manufacturers.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG JIANLANG HIBES INTELLIGENT TECH CO LTD
- Filing Date
- 2024-06-14
- Publication Date
- 2026-07-21
AI Technical Summary
When users forget their management password, smart lock manufacturers cannot retrieve it through the built-in backdoor, leading to security risks and high labor costs.
The method for recovering the password through the anti-tamper switch includes determining and initiating the anti-tamper retrieval process, determining whether it meets the requirements to enter the anti-tamper initialization mode, if it does, entering the anti-tamper initialization mode and suspending irrelevant tasks, determining whether the anti-tamper switch input signal meets the requirements, if it does, initializing the management password and restoring the smart lock to work.
It enables the recovery of management passwords without building backdoors, reducing security risks and labor costs, and improving the security and convenience of users' self-service password retrieval.
Smart Images

Figure CN118537952B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart locks, and in particular to a method for recovering a password using an anti-tamper switch and a smart door lock. Background Technology
[0002] Smart door locks come with a default administrator password, which is the highest level of access. This default password is set at the factory, but users often forget it after changing it and need to retrieve it. However, due to security risks, lock manufacturers cannot provide a way to retrieve the administrator password, as this would create a security vulnerability. Furthermore, most door locks are standard locks without internet connectivity, making network-based solutions impractical.
[0003] Current conventional solutions: Some manufacturers incorporate a physical button into the rear lock, which triggers initialization or password retrieval when pressed and held. However, with cost-saving measures in door lock design, there is a trend towards single-chip, single-board designs. Rear locks no longer have any board or button (adding one would significantly increase costs), thus limiting the applicability of this method.
[0004] Currently, when retrieving the management password, the manufacturer needs to send someone with a spare PCBA (the correct model number must be matched) to the site to replace the door lock electronic PCBA hardware, and then return the faulty PCBA to the factory for processing, which increases the manufacturer's processing procedures and manpower costs.
[0005] In summary, there is a contradiction between two situations: on the one hand, users forget their management passwords and want to retrieve them; on the other hand, lock manufacturers cannot build backdoors due to security risks, thus making it impossible to retrieve management passwords. Therefore, there is an urgent need for a method that can recover management passwords without building backdoors. Summary of the Invention
[0006] The main objective of this invention is to provide a method for recovering passwords via an anti-tamper switch and a smart door lock, which solves the problem of not having a built-in backdoor for recovering management passwords.
[0007] This invention proposes a method for recovering a password using an anti-tamper switch, comprising the following steps:
[0008] Identify and initiate the anti-tamper retrieval process;
[0009] Determine if the conditions for entering the anti-tamper initialization mode are met;
[0010] After determining that the conditions for entering the anti-tamper initialization mode are met, the system enters the anti-tamper initialization mode and suspends irrelevant tasks.
[0011] In the anti-tamper initialization mode, it is determined whether the signal input through the anti-tamper switch meets the requirements;
[0012] If the conditions are met, the management password will be initialized.
[0013] To restore the smart door lock to normal operation.
[0014] Furthermore, the steps for determining and initiating the anti-tamper recovery process include:
[0015] Determine if the obtained recovery startup password is correct;
[0016] If so, initiate the anti-tamper retrieval process.
[0017] Furthermore, the steps to determine whether the conditions for entering the anti-tamper initialization mode are met include:
[0018] Determine whether the reset flag is set to USB power-on reset or non-USB power-on reset;
[0019] If it is a USB power-on reset, it is determined that the conditions for entering the anti-tamper initialization mode are not met.
[0020] If it is a non-USB power-on reset, then the conditions for entering the anti-tamper initialization mode are met.
[0021] Furthermore, after determining whether the conditions for entering the anti-tamper initialization mode are met, the following steps are included:
[0022] If the conditions for entering the anti-tamper initialization mode are not met, the smart lock will proceed to the recovery process.
[0023] Furthermore, the steps for initializing the management password include:
[0024] The management password will be initialized either by setting it up or by initializing the entire lock.
[0025] Furthermore, the steps to restore the smart lock's functionality include:
[0026] Change the reset flag to USB power-on reset;
[0027] Exit the anti-tamper initialization mode to restore the smart lock to its working state.
[0028] Furthermore, in the anti-tamper initialization mode, after determining whether the signal input through the anti-tamper switch meets the requirements, the following steps are included:
[0029] If the signal input through the anti-tamper switch is determined to be non-compliant, the corresponding voice broadcast will be made according to the settings and the process will proceed to change the reset flag to USB power-on reset.
[0030] If no signal is received through the anti-tamper switch within the set time, the system will issue a corresponding voice announcement and proceed to the step of changing the reset flag to USB power-on reset.
[0031] Furthermore, in the anti-tamper initialization mode, the step of determining whether the signal input through the anti-tamper switch meets the requirements includes:
[0032] A preset combination of signals is randomly selected and compared with the signal input through the anti-tamper switch.
[0033] This application also proposes a smart lock for using the above-described method of recovering the password via an anti-tamper switch.
[0034] This invention discloses a method for recovering a password using an anti-tamper switch and a smart lock. The method includes the following steps: determining and initiating the anti-tamper recovery process; determining whether the conditions for entering the anti-tamper initialization mode are met; after determining that the conditions for entering the anti-tamper initialization mode are met, entering the anti-tamper initialization mode and suspending irrelevant tasks; in the anti-tamper initialization mode, determining whether the signal input through the anti-tamper switch meets the requirements; if it does, initializing the management password; and restoring the smart lock's operation. Password recovery using the existing anti-tamper switch input signal eliminates the need for a built-in backdoor, thus solving the problem of recovering the management password without a built-in backdoor. Attached Figure Description
[0035] Figure 1 This is a schematic diagram illustrating the steps of an embodiment of the method for recovering a password using an anti-tamper switch according to the present invention;
[0036] Figure 2 This is a flowchart illustrating an embodiment of the method for recovering a password using an anti-tamper switch according to the present invention;
[0037] Figure 3 This is a preset code rule in one embodiment of the method for recovering a password using an anti-tamper switch according to the present invention;
[0038] Figure 4 This is another embodiment of the preset code rule in the method for recovering a password using an anti-tamper switch of the present invention;
[0039] Figure 5 This is the preset code rule in the third embodiment of the method for recovering a password using an anti-tamper switch according to the present invention. Detailed Implementation
[0040] The technical solution described in this paper will now be described in further detail with reference to the accompanying drawings.
[0041] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly. The connection can be a direct connection or an indirect connection.
[0042] Reference Figure 1-5 This invention proposes a method for recovering a password using a tamper-proof switch, comprising the following steps:
[0043] S1. Determine and initiate the anti-tamper retrieval process;
[0044] S2. If yes, then determine whether the conditions for entering the anti-tamper initialization mode are met;
[0045] S3. After determining that the conditions for entering the anti-tamper initialization mode are met, enter the anti-tamper initialization mode and suspend irrelevant tasks.
[0046] S4. In the anti-tamper initialization mode, determine whether the signal input through the anti-tamper switch meets the requirements;
[0047] S5. If the conditions are met, initialize the management password;
[0048] S6. Restore the smart lock to normal operation.
[0049] Specifically, in step S1 above, in some embodiments, the anti-tamper retrieval process is initiated based on whether a recovery start password is received; the recovery start password can be entered via the input button on the smart lock; in some embodiments, the recovery start password can be obtained through voice input, terminal scanning input, etc.; in some embodiments, the recovery start password is preset; in some embodiments, the smart lock can generate the recovery start password and send it to the bound terminal, thereby improving security.
[0050] In step S2 above, in some embodiments, the determination of whether to enter the anti-tamper initialization mode is made by judging whether the reset flag is a USB power-on reset or a non-USB power-on reset. When the reset flag is a USB power-on reset, it means that the power-on operation is performed through the USB interface outside the door, which is risky and should not be entered into the anti-tamper initialization mode. When the reset flag is a non-USB power-on reset, it means that the operation is performed through the inside of the door, such as a power-on operation performed by power-off and restart from the inside. The risk is lower when the user performs the operation from the inside of the door. Therefore, in some embodiments, when it is determined that the reset flag is a non-USB power-on reset, the conditions for entering the anti-tamper initialization mode are met.
[0051] In step S3 above, when in anti-tamper initialization mode, corresponding operations need to be performed. Therefore, other unrelated tasks need to be suspended. For example, the anti-tamper switch will not trigger an alarm, thus avoiding adverse effects on the anti-tamper initialization. In some embodiments, there will be a prompt sound during step S3, such as "Please wait." This not only informs the operator of the progress, but also serves as a deterrent to non-operators who are already in a hurry and do not want others to know that they are dealing with the door lock.
[0052] In step S4 above, since the anti-pry switch is not exposed under normal circumstances, only the user can easily disassemble the smart lock to expose the anti-pry switch and generate a signal by triggering it. Therefore, the signal generated by triggering the anti-pry switch is most likely operated by the user or a maintenance personnel, thus ensuring security. The anti-pry switch being pressed down and ejected represents 1 and 0 respectively. By using a custom code rule, repeatedly pressing and ejecting the switch can achieve the toggling of 1 and 0 levels. The signal generated by the anti-pry switch is determined by identifying the toggling level. Figure 3-5 As shown, the specific code rules can be set according to actual requirements; when the signal input by the anti-tamper switch is consistent with the preset code rules, it is determined that the signal input by the anti-tamper switch meets the requirements; in some embodiments, only one preset code rule is preset, which can be set at the factory; in some embodiments, multiple preset code rules can be preset, and by randomly selecting one of the preset code rules, it is easier for professionally trained maintenance personnel to verify and pass the verification, thereby improving security.
[0053] In step S5 above, in some embodiments, the management password is initialized according to a pre-defined method; in some embodiments, the management password can be initialized temporarily, depending on the actual situation; in some embodiments, only the management password can be initialized to restore the management password; in some embodiments, the management password can be initialized and restored by initializing the entire smart lock.
[0054] In step S6 above, restoring the smart lock to normal operation includes resuming suspended tasks, etc., so that the smart lock can work normally.
[0055] Furthermore, in some embodiments, step S1 of determining and initiating the anti-tamper retrieval process includes:
[0056] S11. Determine whether the obtained recovery startup password is correct;
[0057] S12. If so, then initiate the anti-tamper retrieval process.
[0058] In steps S11-S12 above, in some embodiments, the recovery startup password can be a trigger shortcut key, for example, pressing multiple set keys for a set duration will determine that the obtained recovery startup password is correct; in some embodiments, the recovery startup password is a password entered by key, such as: 1234#12345#; in some embodiments, the recovery startup password can be entered by voice recognition input or scanning recognition input, etc.
[0059] Furthermore, in some embodiments, step S2, which determines whether the conditions for entering the anti-tamper initialization mode are met, includes:
[0060] S21. Determine whether the reset flag is a USB power-on reset or a non-USB power-on reset.
[0061] S22. If it is a USB power-on reset, it is determined that the conditions for entering the anti-tamper initialization mode are not met.
[0062] S23. If it is a non-USB power-on reset, then it is determined that the conditions for entering the anti-tamper initialization mode are met.
[0063] In steps S21-S23 above, the USB power-on reset can be triggered simultaneously by plugging a power bank or mobile phone into the front lock's USB port. This function can be implemented through hardware circuitry or software by detecting the presence of a USB power source via GPIO level to determine whether to trigger the USB power-on reset. USB power-on resets are typically implemented from outside the smart lock. Non-USB power-on resets usually occur when the battery is removed from the inside of the smart lock. Therefore, if it is a USB power-on reset outside the door, it does not meet the conditions for entering the anti-tamper initialization mode and is not suitable for a user to voluntarily restore the management password. If it is a non-USB power-on reset inside the door, it meets the conditions for entering the anti-tamper initialization mode and is suitable for a user to voluntarily restore the management password, thus reducing risk.
[0064] Furthermore, in some embodiments, after step S2 of determining whether the conditions for entering the anti-tamper initialization mode are met, the following is included:
[0065] S24. If the conditions for entering the anti-tamper initialization mode are not met, proceed to the smart lock operation recovery step.
[0066] In step S24 above, in some embodiments, before performing the smart lock operation recovery step S6, a corresponding voice prompt may be given, such as "operation restricted".
[0067] Furthermore, in some embodiments, step S5 of initializing the management password includes:
[0068] S51. According to the settings, initialize the management password or initialize the management password through the whole lock initialization.
[0069] In step S51 above, the setting can be preset before leaving the factory or the option to select the specific implementation method can be preset. By temporarily selecting before the management password is initialized, it can be determined whether to initialize only the management password or to initialize the management password through the whole lock initialization.
[0070] Furthermore, in some embodiments, step S6 of restoring the smart lock to its normal operation includes:
[0071] S61. Change the reset flag to USB power-on reset;
[0072] S62. Exit the anti-tamper initialization mode to restore the smart lock to its working state.
[0073] In steps S61-S62 above, changing the reset flag to USB power-on reset can prevent the smart lock from being accessed in step S2, thus preventing others from retrieving the password through the anti-tamper switch after the management password has been recovered, thereby improving security. In some embodiments, if the password needs to be recovered through the anti-tamper switch again, the battery needs to be removed before it can be done.
[0074] Furthermore, in some embodiments, in the anti-tamper initialization mode, after step S4 of determining whether the signal input through the anti-tamper switch meets the requirements, the following is included:
[0075] S7. If it is determined that the signal input through the anti-tamper switch does not meet the requirements, then according to the settings, the corresponding voice broadcast will be made and the reset flag will be changed to USB power-on reset step S61.
[0076] S8. If no signal is received through the anti-tamper switch within the set time, the corresponding voice broadcast will be made according to the setting and the process will proceed to step S61, which changes the reset flag to USB power-on reset.
[0077] In step S7 above, the voice broadcast not only serves to indicate the progress, such as "operation is restricted," but also makes non-regular users feel uncomfortable and has a certain deterrent effect. The voice broadcast can also be just a prompt without specific content.
[0078] In step S8 above, in the case of long-term inactivity, a voice broadcast serves as a reminder of the process, such as "System exit". The voice broadcast may also be just a notification sound without any specific content.
[0079] Furthermore, in some embodiments, in the anti-tamper initialization mode, before step S4 of determining whether the signal input through the anti-tamper switch meets the requirements, the following is included:
[0080] S401. Randomly select one of the preset multiple signal combinations. The signal combination is used to compare with the signal input through the anti-tamper switch.
[0081] In step S401 above, the signal combination is a comparison rule used to determine whether the signal input through the tamper switch meets the requirements. In some embodiments, the signal combination can be a high-low level combination or a rising-edge and falling-edge combination, etc. The high-low level combination refers to using the distribution rules of high and low levels as the judgment standard. The rising-edge and falling-edge combination refers to the high-low level combination with added time, such as a high level of 1 second, a low level of 2 seconds, and a high level of 1 second. Since the timing control cannot be completely consistent, errors are allowed. Under the condition that the error is allowed, it can be determined that the signal input through the tamper switch meets the requirements.
[0082] This application also proposes a smart lock for using the above-described method of recovering the password via an anti-tamper switch.
[0083] Specifically, the smart door lock includes an anti-pry switch and an MCU main controller. The anti-pry switch and the MCU main controller are electrically connected. The signal generated by the anti-pry switch is acquired and recognized by the MCU main controller. The smart door lock can be used to apply the above-mentioned method of recovering the password through the anti-pry switch.
[0084] This invention discloses a method for recovering a password using an anti-tamper switch and a smart lock. The method includes the following steps: determining and initiating the anti-tamper recovery process; determining whether the conditions for entering the anti-tamper initialization mode are met; after determining that the conditions for entering the anti-tamper initialization mode are met, entering the anti-tamper initialization mode and suspending irrelevant tasks; in the anti-tamper initialization mode, determining whether the signal input through the anti-tamper switch meets the requirements; if it does, initializing the management password; and restoring the smart lock's operation. Password recovery using the existing anti-tamper switch input signal eliminates the need for a built-in backdoor, thus solving the problem of recovering the management password without a built-in backdoor.
[0085] The above description is merely a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A method for recovering a password using a tamper-proof switch, characterized in that, Includes the following steps: Identify and initiate the anti-tamper retrieval process; Determine if the conditions for entering the anti-tamper initialization mode are met; After determining that the conditions for entering the anti-tamper initialization mode are met, the system enters the anti-tamper initialization mode and suspends irrelevant tasks. In the anti-tamper initialization mode, it is determined whether the signal input through the anti-tamper switch meets the requirements; If the conditions are met, the management password will be initialized. To restore the smart lock to normal operation; The steps for determining whether the conditions for entering the anti-tamper initialization mode are met include: Determine whether the reset flag is set to USB power-on reset or non-USB power-on reset; If it is a USB power-on reset, it is determined that the conditions for entering the anti-tamper initialization mode are not met. If it is a non-USB power-on reset, then it is determined that the conditions for entering the anti-tamper initialization mode are met; The steps for restoring the smart lock to normal operation include: Change the reset flag to USB power-on reset; Exit the anti-tamper initialization mode to restore the smart lock to its working state.
2. The method for recovering a password using an anti-tamper switch according to claim 1, characterized in that, The steps for determining and initiating the anti-tamper retrieval process include: Determine if the obtained recovery startup password is correct; If so, initiate the anti-tamper retrieval process.
3. The method for recovering a password using an anti-tamper switch according to claim 1, characterized in that, Following the step of determining whether the conditions for entering the anti-tamper initialization mode are met, the following steps are included: If the conditions for entering the anti-tamper initialization mode are not met, proceed to the smart lock operation recovery step.
4. The method for recovering a password using an anti-tamper switch according to claim 1, characterized in that, The step of initializing the management password includes: According to the settings, the management password is initialized or the management password is initialized through the whole lock initialization.
5. The method for recovering a password using an anti-tamper switch according to claim 1, characterized in that, The step after determining whether the signal input through the anti-tamper switch meets the requirements in the anti-tamper initialization mode includes: If it is determined that the signal input through the anti-tamper switch does not meet the requirements, then according to the settings, the corresponding voice broadcast will be performed and the process will proceed to the step of changing the reset flag to USB power-on reset. If no signal is received through the anti-tamper switch within the set time, a corresponding voice broadcast will be made according to the settings, and the process will proceed to the step of changing the reset flag to USB power-on reset.
6. The method for recovering a password using an anti-tamper switch according to claim 1, characterized in that, Before the step of determining whether the signal input through the anti-tamper switch meets the requirements in the anti-tamper initialization mode, the following steps are included: A preset combination of signals is randomly selected and compared with the signal input through the tamper switch.
7. A smart door lock, characterized in that, The method for recovering a password using a tamper-proof switch as described in any one of claims 1-6.