CN111221580B - Method, equipment and storage medium for safely restoring factory settings of intelligent lock - Google Patents

Method, equipment and storage medium for safely restoring factory settings of intelligent lock Download PDF

Info

Publication number
CN111221580B
CN111221580B CN201911345819.0A CN201911345819A CN111221580B CN 111221580 B CN111221580 B CN 111221580B CN 201911345819 A CN201911345819 A CN 201911345819A CN 111221580 B CN111221580 B CN 111221580B
Authority
CN
China
Prior art keywords
reset
intelligent lock
administrator
manager
password
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911345819.0A
Other languages
Chinese (zh)
Other versions
CN111221580A (en
Inventor
沈汉标
王妙玉
童威云
王�义
伍房林
孔林海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Hotata Smart Home Co Ltd
Original Assignee
Guangdong Hotata Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Hotata Smart Home Co Ltd filed Critical Guangdong Hotata Smart Home Co Ltd
Priority to CN201911345819.0A priority Critical patent/CN111221580B/en
Publication of CN111221580A publication Critical patent/CN111221580A/en
Application granted granted Critical
Publication of CN111221580B publication Critical patent/CN111221580B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00817Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys where the code of the lock can be programmed

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a method, equipment and storage medium for setting up a safe recovery factory of an intelligent lock, wherein the setting method comprises the following steps: s1: receiving a reset instruction of the intelligent lock; s2: a preset manager list corresponding to the intelligent lock is called, whether the current intelligent lock is bound with a manager or not is judged according to the preset manager list, and if yes, step S3 is executed; if not, ending the reset; s3: generating a reset notification and an administrator password according to the reset instruction, and sending the reset notification and the administrator password to the mobile terminal bound with the administrator for display; s4: receiving an administrator password input by a user through the mobile terminal, judging whether the administrator password is correct, and if so, executing an initialization program of the intelligent lock according to a reset instruction; if not, the reset is terminated. The invention adds a reset verification step, prevents unauthorized operation and improves the safety of the intelligent lock.

Description

Method, equipment and storage medium for safely restoring factory settings of intelligent lock
Technical Field
The present invention relates to the field of intelligent locks, and in particular, to a method, an apparatus, and a storage medium for safely restoring factory settings of an intelligent lock.
Background
At present, the intelligent lock gradually goes deep into the daily life of people due to the characteristics of convenient operation, high safety and the like. The existing intelligent lock device can carry out self-defined setting on various configuration parameters in the intelligent lock according to personal requirements of users, so that the functions of the intelligent lock are more in line with the personal requirements of each user.
The existing intelligent lock device generally has a device resetting function, the intelligent lock is returned to a state when leaving the factory through restoring the factory setting, all user-defined parameters are reset, the user-modified unaccustomed operation in the device is restored to the initial state, and the setting time is saved.
However, the existing intelligent lock device lacks a certain resetting verification process, and after a non-user presses a reset key on the intelligent lock, the intelligent lock device can be reset, so that the intelligent lock device is in a password-free state when leaving a factory, the safety of the intelligent lock is reduced, and potential safety hazards such as non-user operation and unauthorized resetting exist.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the purposes of the invention is to provide a method for safely restoring factory settings of an intelligent lock, which needs to confirm the identity of an operator by inputting an administrator password, increase a reset verification step, prevent unauthorized operation and improve the safety of the intelligent lock.
The second object of the present invention is to provide an intelligent lock device.
It is a further object of the present invention to provide a storage medium.
One of the purposes of the invention is realized by adopting the following technical scheme:
a method for securely restoring factory settings of an intelligent lock, comprising:
step S1: receiving a reset instruction of the intelligent lock;
step S2: a preset manager list corresponding to the intelligent lock is called, whether the current intelligent lock is bound with a manager or not is judged according to the preset manager list, and if yes, step S3 is executed; if not, ending the reset;
step S3: generating a reset notification and an administrator password according to the reset instruction, and sending the reset notification and the administrator password to the mobile terminal bound with the administrator for display;
step S4: receiving an administrator password input by a user through the mobile terminal, judging whether the administrator password is correct, and if so, executing an initialization program of the intelligent lock according to a reset instruction; if not, the reset is terminated.
Further, the reset instruction is generated after the user presses a reset key on the intelligent lock for more than a set time, or after the user presses a reset option on a reset page of the mobile terminal.
Further, the preset manager list includes a sorting number of each manager, a name of each manager, and a terminal number and an ID corresponding to each manager.
Further, the number of the administrators in the preset administrator list is at least one, and the administrators are prioritized in the preset administrator list.
Further, the method for sending the reset notification and the administrator password to the mobile terminal bound to the administrator in step S3 includes:
step S30: judging whether the reset instruction is sent by the mobile terminal, if so, executing the step S31, and if not, pushing a reset notification and an administrator password to an administrator terminal with the highest priority according to the priority order of the administrators in a preset management list;
step S31: judging whether the ID of the mobile terminal is in a preset management list, if so, pushing the reset notification and the manager password to the mobile terminal corresponding to the ID preferentially, and if not, pushing the reset notification and the manager password to the manager terminal with the highest priority in the preset management list.
Further, the administrator password corresponding to each administrator is randomly generated, the administrator password is invalid and automatically deleted after a set period, and another administrator password is regenerated when the reset operation is triggered next time.
Further, the administrator password is one or more of random numbers, random letters and random Chinese characters.
Further, the administrator password includes at least four characters.
The second purpose of the invention is realized by adopting the following technical scheme:
the intelligent lock equipment comprises a processor, a memory and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the method for safely restoring factory settings of the intelligent lock when executing the computer program.
The third purpose of the invention is realized by adopting the following technical scheme:
a storage medium having stored thereon a computer program which when executed implements the method of secure factory reset of a smart lock described above.
Compared with the prior art, the invention has the beneficial effects that:
in the resetting verification process, whether the intelligent lock is bound with an administrator or not needs to be judged, the administrator password is sent to the administrator terminal, the administrator can forward the administrator password to an operation user, authorized operation is achieved, the user can reset the intelligent lock after inputting the administrator password and the password is correct, unauthorized operation behavior is prevented, and safety of the intelligent lock is improved.
Drawings
Fig. 1 is a factory setting restoration method of the intelligent lock of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and detailed description, wherein it is to be understood that, on the premise of no conflict, the following embodiments or technical features may be arbitrarily combined to form new embodiments.
Example 1
The utility model provides a safe factory setting recovery method of intelligent lock, needs to carry out the administrator and verifies and just can reset intelligent lock, lets intelligent lock equipment resume the state of leaving the factory, improves intelligent lock's security.
The reset method needs the intelligent lock and the mobile terminal with the software client to cooperate with each other, as shown in fig. 1, and includes:
step S1: and receiving a reset instruction of the intelligent lock.
A reset key is arranged on the intelligent lock, and after the reset key is pressed for a long time to exceed a set time, a reset instruction can be triggered and generated; in addition, the user clicks the software client on the mobile terminal, and pressing the reset option after entering the reset page can trigger generation of a reset instruction, so that the reset operation of the intelligent lock is started.
Step S2: a preset manager list corresponding to the intelligent lock is called, whether the current intelligent lock is bound with a manager or not is judged according to the preset manager list, and if yes, step S3 is executed; if not, the reset is terminated.
The user inputs the information of the administrators in advance in the reset page of the software client on the mobile terminal, the number of the administrators is set to be at least one, the administrators are used for adding the reset verification step, the reset operation of the intelligent lock can be performed after the authorization of the administrators, the occurrence of unauthorized operation is prevented, and the safety of the intelligent lock is improved.
The administrator can be set as a binding user of the intelligent lock, or an authorized user of the intelligent lock, an administrator list is added in a preset administrator list according to requirements, the name of each administrator, the terminal number and the ID corresponding to each administrator are input, when the number of the administrators is more than one, the priority of each administrator can be ordered, the administrators in the preset administrator list are ordered in sequence according to the priority level, the ordered administrators are numbered, the administrator with the high priority is arranged in the front of the preset administrator list, and the ordering number is smaller, so that the ordering number of each administrator, the name of each administrator and the terminal number and the ID corresponding to each administrator can be seen in the preset administrator list; the reset notification and the manager password can be sent to the manager with the highest priority in the preset manager list in a follow-up mode, so that the manager with the highest priority can obtain the reset operation information at the highest speed, and unauthorized operation is prevented.
Step S3: generating a reset notification and an administrator password according to the reset instruction, and sending the reset notification and the administrator password to the mobile terminal bound with the administrator for display;
after the reset instruction is sent out, triggering a reset notification to be generated according to a preset template, sending the reset notification according to an administrator list in a preset administrator list, randomly generating an administrator password, and synchronously sending the administrator password to an administrator terminal when sending the reset notification so that an administrator can decide whether to continue the reset operation.
The administrator passwords corresponding to each administrator are randomly generated, the administrator passwords are one or more of random numbers, random letters and random Chinese characters, and meanwhile, the administrator passwords at least comprise four characters, so that the complexity of the administrator passwords can be improved, the anti-counterfeiting effect is achieved, and the safety is improved; after the manager password is sent to the terminal, whether the manager password is used in a set period or not, the manager password is invalid and automatically deleted after the set period is exceeded, and another manager password different from the manager password is regenerated after the reset operation is triggered next time, so that the safety is improved.
The method for sending the reset notification and the administrator password to the mobile terminal bound with the administrator comprises the following steps:
step S30: and judging whether the reset instruction is sent by the mobile terminal, if so, executing the step S31, and if not, pushing the reset notification and the manager password to the manager terminal with the highest priority according to the priority order of the managers in the preset management list.
Since the reset instruction may be generated by triggering a reset key on the smart lock or may be generated by triggering a reset key on the mobile terminal client, the source of the reset instruction is first determined, and if the reset instruction is sent by the mobile terminal, the ID of the mobile terminal may be obtained while the reset instruction is received, thereby determining the identity of the user that triggers the reset operation by using the mobile terminal. If the reset instruction is triggered and generated by a reset key on the intelligent lock, the reset instruction and the manager password are directly pushed to the manager terminal with the highest priority according to the priority sequence of the manager in the preset management list, if the manager forwards the received reset password to the user terminal triggering the reset operation or informs other users, the user terminal authorizes the reset operation, and the other users can input the reset password after acquiring the reset password so as to obtain the authorization of the reset operation, so that the safety of reset verification is improved; if the administrator finds that the reset operation is not triggered by the administrator or the known user after receiving the reset notification, the password is not required to be revealed or forwarded, the administrator does not authorize the reset operation, the reset operation cannot be continued under the condition that the password is not reset by an unauthorized user, and the reset operation is terminated.
Step S31: judging whether the ID of the mobile terminal is in a preset management list, if so, pushing the reset notification and the manager password to the mobile terminal corresponding to the ID preferentially, and if not, pushing the reset notification and the manager password to the manager terminal with the highest priority in the preset management list.
If the reset instruction is sent by the mobile terminal, whether the user using the mobile terminal to trigger the reset operation is one of the administrators can be judged by judging whether the ID of the terminal is in the preset management list, if so, the user is provided with the right to start the reset operation, so that the reset password and the reset notification are sent to the terminal corresponding to the ID preferentially, the trouble that the administrator user still needs to ask for the reset password from the administrator with the highest priority is avoided, and the flow of the step of starting the reset operation by the administrator is quickened.
Step S4: receiving an administrator password input by a user through the mobile terminal, judging whether the administrator password is correct, and if so, executing an initialization program of the intelligent lock according to a reset instruction; if not, the reset is terminated.
After receiving the reset password notified by the administrator, the user triggering the reset operation inputs the reset password into a reset page corresponding to the mobile terminal, the mobile terminal sends the password input by the user to the intelligent lock, the intelligent lock checks the input password with the reset password generated in the step S3, if the input password is the same as the generated administrator password, the check is successful, and at the moment, the user triggering the reset operation obtains the right of resetting the intelligent lock, so that the reset operation can be started; if the input password is different from the generated administrator password, the user is an unauthorized user, the reset operation is terminated, the phenomenon of unauthorized reset of the intelligent lock can be prevented, and the safety of equipment is improved.
Example two
The embodiment provides intelligent door lock equipment, which comprises a processor, a memory and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the method for safely restoring factory settings of the intelligent lock in the first embodiment when executing the computer program; in addition, the embodiment also provides a storage medium, on which a computer program is stored, wherein the computer program is executed to realize the method for safely restoring factory settings of the intelligent lock.
The apparatus and the storage medium in this embodiment and the method in the foregoing embodiments are based on two aspects of the same inventive concept, and the detailed description of the method implementation process has been given above, so those skilled in the art can clearly understand the structure and implementation process of the system in this embodiment according to the foregoing description, and the details are omitted herein for brevity.
The above embodiments are only preferred embodiments of the present invention, and the scope of the present invention is not limited thereto, but any insubstantial changes and substitutions made by those skilled in the art on the basis of the present invention are intended to be within the scope of the present invention as claimed.

Claims (8)

1. The method for safely restoring the factory setting of the intelligent lock is characterized by comprising the following steps of:
step S1: receiving a reset instruction of the intelligent lock;
step S2: a preset manager list corresponding to the intelligent lock is called, whether the current intelligent lock is bound with a manager or not is judged according to the preset manager list, and if yes, step S3 is executed; if not, ending the reset; the preset manager list comprises a sequencing number of each manager, a name of each manager and a terminal number and an ID corresponding to each manager;
step S3: generating a reset notification and an administrator password according to the reset instruction, and sending the reset notification and the administrator password to the mobile terminal bound with the administrator for display; the method for sending the reset notification and the administrator password to the mobile terminal bound with the administrator in the step S3 includes:
step S30: judging whether the reset instruction is sent by the mobile terminal, if so, executing the step S31, and if not, pushing a reset notification and an administrator password to an administrator terminal with the highest priority according to the priority order of the administrators in a preset management list;
step S31: judging whether the ID of the mobile terminal is in a preset management list, if so, pushing the reset notification and the manager password to the mobile terminal corresponding to the ID preferentially, and if not, pushing the reset notification and the manager password to the manager terminal with the highest priority in the preset management list;
step S4: receiving an administrator password input by a user through the mobile terminal, judging whether the administrator password is correct, and if so, executing an initialization program of the intelligent lock according to a reset instruction; if not, the reset is terminated.
2. The method for restoring factory settings of an intelligent lock according to claim 1, wherein the reset instruction is generated by a user pressing a reset button on the intelligent lock for more than a set time, or by a user pressing a reset option on a reset page of the mobile terminal.
3. The method for factory setting security recovery of an intelligent lock according to claim 1, wherein the number of administrators in the preset administrator list is at least one, and wherein the administrators are prioritized in the preset administrator list.
4. The method for factory setting security recovery of an intelligent lock according to claim 1, wherein the administrator password corresponding to each administrator is randomly generated, the administrator password is invalidated and automatically deleted after a set period, and another administrator password is regenerated when a reset operation is triggered next time.
5. The method for factory setting security recovery of an intelligent lock according to claim 4, wherein the administrator password is one or more of random numbers, random letters, random Chinese characters.
6. The method of claim 5, wherein the administrator code comprises at least four characters.
7. An intelligent lock device, comprising a processor, a memory and a computer program stored in the memory and operable on the processor, wherein the processor implements the method for securely restoring factory settings of the intelligent lock according to any one of claims 1 to 6 when executing the computer program.
8. A storage medium having stored thereon a computer program which, when executed, implements the method of secure factory reset of a smart lock according to any one of claims 1 to 6.
CN201911345819.0A 2019-12-24 2019-12-24 Method, equipment and storage medium for safely restoring factory settings of intelligent lock Active CN111221580B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911345819.0A CN111221580B (en) 2019-12-24 2019-12-24 Method, equipment and storage medium for safely restoring factory settings of intelligent lock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911345819.0A CN111221580B (en) 2019-12-24 2019-12-24 Method, equipment and storage medium for safely restoring factory settings of intelligent lock

Publications (2)

Publication Number Publication Date
CN111221580A CN111221580A (en) 2020-06-02
CN111221580B true CN111221580B (en) 2023-11-03

Family

ID=70825882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911345819.0A Active CN111221580B (en) 2019-12-24 2019-12-24 Method, equipment and storage medium for safely restoring factory settings of intelligent lock

Country Status (1)

Country Link
CN (1) CN111221580B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112836195B (en) * 2021-03-26 2024-03-26 中国工商银行股份有限公司 Password modification method and device for enterprise bank authentication medium
CN114005201A (en) * 2021-10-26 2022-02-01 珠海格力电器股份有限公司 Door lock control method and device, electronic equipment and storage medium
CN115664692A (en) * 2022-08-17 2023-01-31 四川启睿克科技有限公司 Control method for restoring factory settings of door lock
EP4336387A1 (en) * 2022-09-07 2024-03-13 Ambu A/S Configuration of a medical visualisation system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868621A (en) * 2016-03-25 2016-08-17 深圳市万普拉斯科技有限公司 A password resetting method and device
CN106127888A (en) * 2016-06-14 2016-11-16 天津宅美智能科技有限公司 Smart lock operational approach and smart lock operating system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868621A (en) * 2016-03-25 2016-08-17 深圳市万普拉斯科技有限公司 A password resetting method and device
CN106127888A (en) * 2016-06-14 2016-11-16 天津宅美智能科技有限公司 Smart lock operational approach and smart lock operating system

Also Published As

Publication number Publication date
CN111221580A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN111221580B (en) Method, equipment and storage medium for safely restoring factory settings of intelligent lock
KR102307665B1 (en) identity authentication
EP3691215B1 (en) Access token management method, terminal and server
CN106446632B (en) Hidden display starting method and hidden display starting device for application program
CN102281539B (en) Mobile terminal and application program login method thereof
US9325704B2 (en) Data access method and device
WO2015101018A1 (en) Identity verification method and device
CN108319865B (en) Privacy protection method based on multiple roles, storage medium and terminal equipment
CN109040030B (en) Single sign-on method and system
CN110430167B (en) Temporary account management method, electronic device, management terminal and storage medium
CN110110519B (en) Password resetting method and device for security device and readable storage medium
CN105577619B (en) Client login method, client and system
US20160353285A1 (en) Method, Terminal and Server for Processing Information, and Communication Method and System
CN109714363B (en) Method and system for modifying switch password
WO2016072833A1 (en) System and method to disable factory reset
EP2985712B1 (en) Application encryption processing method, apparatus, and terminal
CN110351296B (en) Application login method and device and related equipment thereof
WO2016187966A1 (en) Terminal and method for protecting data security of terminal
EP2981148B1 (en) Device management method, apparatus and system
CN104917737B (en) User account protection method and device
CN112966276B (en) Method, device and medium for safely starting computer
WO2008089638A1 (en) Method and communication terminal of controlling user information on the communication termial
US20180373603A1 (en) Web Application System and Database Utilization Method Therefor
CN110909344B (en) Control method and device
WO2017185461A1 (en) Method and system for recovering tampered key information of virtual subscriber identity module

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 511434 No.1 and No.2, Shihua Road, Hualong Town, Panyu District, Guangzhou City, Guangdong Province

Applicant after: Guangdong haomadame smart home Co.,Ltd.

Address before: No.1, No.2 highway, No.2, Panyu, Guangzhou

Applicant before: GUANGDONG KELAINI INTELLIGENT TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant