Control method of intelligent lock, electronic equipment, storage medium and program product

By preconfiguring multiple programs in the smart lock and supporting program switching, the high maintenance cost of smart locks when application scenarios change is solved, and flexible program switching and user experience improvement is achieved.

CN119206911APending Publication Date: 2024-12-27GUANGDONG KETYOO INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411241426.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

Existing smart locks need to be replaced or reconfigured when the application scenario changes, resulting in high usage and maintenance costs and it is difficult for users to flexibly switch system programs.

Method used

The smart lock is pre-configured with two programs that are independent of each other and have different access rights to system resources. Through the interaction between the client and the smart lock, it flexibly switches the running system program, supports the running of the pre-set first program in the initial state, and in the After receiving the reset request, check its validity, restore to the initial state, or continue running the target program.

Benefits of technology

It simplifies the use of smart locks, reduces maintenance costs, and improves assembly efficiency and user experience. Users can flexibly switch the system programs running by smart locks through the client without changing the smart lock or contacting maintenance personnel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119206911A_ABST
    Figure CN119206911A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a control method of an intelligent lock, electronic equipment, a storage medium and a program product, and relates to the technical field of intelligent locks. The method can be applied to the intelligent lock, the intelligent lock is pre-configured with at least two programs which are mutually independent and have different access permissions to system resources, and the intelligent lock runs a preset first program in an initial state; the method specifically comprises the following steps: in an initial state, receiving a request sent by a client, and running a target program based on a pairing relationship between the client and an intelligent lock running program; if the reset request is received, detecting the validity of the reset request; if yes, restoring to the initial state and running the first program; and if not, continuing to run the target program. According to the embodiment of the invention, the system program operated by the intelligent lock can be flexibly switched through the initial interaction stage of the equipment and the client and the equipment reset stage, the use operation of the intelligent lock is simplified, and the maintenance cost of the intelligent lock is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of smart locks. Specifically, the present disclosure relates to a control method, electronic device, storage medium and program product of a smart lock. Background Art

[0002] In existing smart locks, different operating programs are configured in order to meet the needs of different application scenarios. For example, if it is suitable for apartment management scenarios, the operating program set by the apartment manager is configured to be managed uniformly; if it is suitable for home scenarios, the operating program set by the home manager is configured to be managed by the home manager.

[0003] However, since the operating programs are generally configured uniformly by the manufacturer when leaving the factory, when the user adjusts the application scenarios of the smart lock, such as changing a rented apartment into a home, the smart lock needs to be replaced or maintenance personnel need to switch different operating programs for the smart lock to use the functions supported by the smart lock in the home scenario, resulting in very high use and maintenance costs of the smart lock. Summary of the invention

[0004] In order to solve at least one of the above technical problems, the embodiments of the present disclosure provide a control method of a smart lock, an electronic device, a storage medium and a program product. The technical solution is as follows: In a first aspect, an embodiment of the present disclosure provides a control method for a smart lock, which is applied to a smart lock, wherein the smart lock is pre-configured with at least two programs that are independent of each other and have different access rights to system resources, and the smart lock runs a preset first program in an initial state; The method comprises: In the initial state, a request sent by a client is received, and a target program is run based on a pairing relationship between the client and the smart lock running program; the target program is one of the at least two programs; If a reset request is received, the validity of the reset request is detected; if valid, the reset request is restored to the initial state and the first program is run; if invalid, the target program is continued to run.

[0005] In a feasible embodiment, receiving a request sent by a client, and running a target program based on a pairing relationship between the client and the smart lock running program, includes at least one of the following: receiving a first binding request sent by a first client through near field communication, and based on the pairing relationship between the first client and the first program, continuing to run the first program and establishing a binding relationship with the first client; A second binding request sent by a second client is received through wireless communication and / or the Internet of Things platform, a non-first program paired with the second client is loaded and run, and a binding relationship with a user account logged in to the second client is established.

[0006] In a feasible embodiment, the first system resource of the smart lock supports the entry of key information through the smart lock; the first program has access rights to the first system resource; and the second program preconfigured by the smart lock cannot access the first system resource; When the first program is run, the method further includes: in response to a key information entry operation, receiving and storing first key information input by an operation object through an interactive module of the smart lock; And / or, when running the second program, the method further includes: receiving and storing second key information sent by a client paired with the second program, the second key information including information remotely entered through the client.

[0007] In a feasible embodiment, the smart lock includes at least one of a first reset button arranged on the outer structure and a second reset button arranged on the inner structure; the second system resource of the smart lock supports at least one of resetting the system through the first reset button, resetting the system through the second reset button, and resetting the system through an unbinding operation initiated by a client; Among them, the first program has access rights to the second system resources; the second program preconfigured by the smart lock cannot access part of the second system resources that support resetting the system through the first reset button.

[0008] In a feasible embodiment, the smart lock includes at least one of a first reset button arranged on the outer structure and a second reset button arranged on the inner structure; When a target program other than the first program is running, detecting the validity of the reset request includes at least one of the following: If the reset request is initiated by the first reset button, determining that the reset request is invalid; If the reset request is initiated by the second reset button, or is initiated by an unbinding operation performed by a client paired with the target program, then determining that the reset request is valid; And / or, when running the first program, detecting the validity of the reset request includes at least one of the following: If the reset request is initiated by performing an unbinding operation on a client paired with the first program, and it is determined that the user information of the client matches the user information bound to the first program, then the reset request is determined to be valid; If the reset request is initiated through the first reset button or the second reset button, it is determined that the reset request is valid.

[0009] In a feasible embodiment, the running of the target program based on the pairing relationship between the client and the smart lock running program includes: Based on the request sent by the client, obtaining user information and attribute information of the client; Determining a target program matching the client based on the pre-registered system program information and the attribute information; Running the target program and establishing a binding relationship with the client based on the user information; The pre-registered system program information includes pairing information between each program and the client; the attribute information includes information for identifying the client and / or information for identifying the target program.

[0010] In a feasible embodiment, if the client has a pairing relationship with a second program preconfigured with the smart lock, when the target program is run, the second program is loaded and switched from the first program to the second program.

[0011] In a feasible embodiment, when running the second program preconfigured by the smart lock, receiving the reset request and detecting the validity of the reset request includes: In response to a reset request triggered by a second reset button disposed on the inner structure of the smart lock, sending an unbinding request to a client paired with the second program; Receive information based on the unbinding request feedback, if the information indicates that the unbinding is agreed, release the binding relationship with the client paired with the second program, and determine that the reset request is valid; if the information indicates that no unbinding is required, determine that the reset request is invalid, and issue an alarm message.

[0012] In a second aspect, an embodiment of the present disclosure provides a method for controlling a smart lock, which is applied to a client, and the method includes: Sending a request to the smart lock in an initial state so that the smart lock runs a target program that has a pairing relationship with the client; the target program is a program that has a pairing relationship with the client; If an unbinding operation initiated by the operation object is received, a reset request is sent to the smart lock, so that when the smart lock confirms that the reset request is valid, it is restored to an initial state and runs the first program; Among them, the smart lock is configured with at least two programs that are independent of each other and have different access rights to system resources; the target program is one of the at least two programs; and the smart lock runs the preset first program in the initial state.

[0013] In a feasible embodiment, sending a request to the smart lock in the initial state includes at least one of the following: If the client is the first client paired with the first program, sending a first binding request to the smart lock in the initial state through near field communication, so that the smart lock runs the first program paired with the first client and establishes a binding relationship with the first client; If the client is a second client paired with a non-first program, a second binding request is sent to the smart lock in the initial state through wireless communication and / or the Internet of Things platform, so that the smart lock loads and runs the non-first program paired with the second client, and establishes a binding relationship with the user account logged in to the second client.

[0014] In a feasible embodiment, the first system resource of the smart lock supports the entry of key information through the smart lock; the first program has access rights to the first system resource; and the second program preconfigured by the smart lock cannot access the first system resource; In the case where the client is paired with the first program, the method further includes: receiving first key information sent by the smart lock; the first key information includes key information input by the operation object through the interaction module of the smart lock, which is received and stored by the smart lock when responding to the key information entry operation; And / or, when the client is paired with the second program, the method further includes: in response to the entry operation of key information, obtaining the second key information input by the operation object through the self-configured interaction module and / or the connected third-party interaction module; and sending the second key information to the smart lock.

[0015] In a feasible embodiment, before sending a request to the smart lock in the initial state, the method further includes: In response to the setting operation of the management right item, setting the attribute information of the client; the attribute information includes information for identifying the identity of the client and / or information for identifying the target program; Among them, the attribute information is carried in the request and sent to the smart lock, so that the smart lock determines the target program matching the client in combination with the pre-registered system program information and the attribute information; the pre-registered system program information includes pairing information of each program and the client.

[0016] In a feasible embodiment, the smart lock includes at least one of a first reset button arranged on the outer structure and a second reset button arranged on the inner structure; the second system resource of the smart lock supports at least one of resetting the system through the first reset button, resetting the system through the second reset button, and resetting the system through an unbinding operation initiated by a client; Among them, the first program has access rights to the second system resources; the second program pre-configured by the smart lock cannot access some system resources in the second system resources that support resetting the system through the first reset button; if the smart lock receives an invalid system reset operation, it continues to run the current program.

[0017] In a feasible embodiment, when the client is paired with a second program preconfigured with the smart lock, the method further includes: Receiving an unbinding request sent by the smart lock in response to a reset operation triggered by a second reset button; the second reset button is arranged on the inner structure of the smart lock; If the binding relationship with the smart lock is released, information indicating consent to the unbinding is fed back to the smart lock, so that the smart lock releases the binding relationship with the client and determines that the reset operation is valid, restores to the initial state and runs the first program; If the unbinding request is rejected, information indicating that no unbinding is required is fed back to the smart lock, so that the smart lock determines that the reset operation is invalid and issues an alarm message.

[0018] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising at least one transceiver and at least one processor coupled to the at least one transceiver, wherein the at least one processor is configured to execute the steps of the method provided by the first aspect and any embodiment thereof or the second aspect and any embodiment thereof.

[0019] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method provided in the first aspect and any embodiment thereof or the second aspect and any embodiment thereof.

[0020] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, comprising a computer program, characterized in that when the computer program is executed by a processor, the steps of the method provided in the first aspect and any embodiment thereof or the second aspect and any embodiment thereof are implemented.

[0021] The technical solution provided by the embodiments of the present disclosure has the following beneficial effects: In the first aspect, the embodiment of the present disclosure provides a control scheme for a smart lock, which can be applied to a smart lock. The smart lock is pre-configured with at least two programs that are independent of each other and have different access rights to system resources. In the initial state, the smart lock runs a preset first program. Specifically, when the smart lock receives a request sent by a client in the initial state, it can run a target program based on the pairing relationship between the client and the program running the smart lock. The target program running at this time can be one of the at least two pre-configured programs. If a reset request is received, the smart lock can detect the validity of the reset request, and when it is determined that the reset request is valid, it can be restored to the initial state and run the first program; if it is determined that the reset request is invalid, the target program can continue to run. In the embodiment of the present disclosure, the system program run by the smart lock can be flexibly switched in the initial device and client interaction stage and the device reset stage, which simplifies the use of the smart lock and effectively reduces the maintenance cost of the smart lock; in addition, in the assembly stage of the smart lock, the smart lock can determine the system program to be run by interacting with the client, which can effectively improve the assembly efficiency of the smart lock and improve the user experience.

[0022] In the second aspect, the embodiment of the present disclosure provides a control scheme for a smart lock, which can be applied to a client; specifically, the client can send a request to a smart lock in an initial state so that the smart lock runs a target program that has a pairing relationship with the client. If the client receives an unbinding operation initiated by the operation object, it can send a reset request to the smart lock so that when the smart lock confirms that the reset request is valid, it will be restored to the initial state and run the first program. Among them, the smart lock is configured with at least two programs that are independent of each other and have different access rights to system resources, the target program can be one of the at least two pre-configured programs, and the smart lock can run the preset first program in the initial state. In the embodiment of the present disclosure, the user can flexibly switch the system program running the smart lock through the client in the initial device and client interaction stage and the device reset stage, without replacing the smart lock and contacting the maintenance personnel to reconfigure the running program of the smart lock, which is conducive to simplifying the use of the smart lock and reducing the maintenance cost of the smart lock; in addition, the user can interact with the smart lock through the client to determine the system program required to run the smart lock during the assembly stage of the smart lock, effectively improving the assembly efficiency of the smart lock and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for describing the embodiments of the present disclosure are briefly introduced below.

[0024] Figure 1 A schematic diagram of a flow chart of a control method of a smart lock provided in an embodiment of the present disclosure; Figure 2A flowchart of another smart lock control method provided by an embodiment of the present disclosure; Figure 3 A schematic diagram of an operating architecture provided for an embodiment of the present disclosure; Figure 4 A schematic diagram of program switching provided by an embodiment of the present disclosure; Figure 5 A schematic diagram of a reset button layout of a smart lock provided in an embodiment of the present disclosure; Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] The embodiments of the present disclosure are described below in conjunction with the drawings in the present disclosure. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present disclosure and do not constitute a limitation on the technical solutions of the embodiments of the present disclosure.

[0026] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present disclosure refer to that the corresponding features can be implemented as the displayed features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" may be implemented as "A", or as "B", or as "A and B".

[0027] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.

[0028] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present disclosure and the technical effects produced by the technical solutions of the present disclosure. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.

[0029] The following describes a control method for a smart lock provided in an embodiment of the present disclosure.

[0030] In a feasible embodiment, the method provided in the embodiment of the present disclosure can be executed by a smart lock. A smart lock is an executive component for locking a door in an access control system. Different from a traditional mechanical lock, a smart lock is a lock that is more intelligent in terms of user identification, security, and manageability. The smart lock has a built-in embedded processor and has the ability to interact with tenants and user management functions. In the embodiment of the present disclosure, in order to improve the security of the system or meet the specific needs of different users, the smart lock can be pre-configured with at least two programs, and different programs have different access rights to system resources.

[0031] Among them, the system resources configured by the smart lock may include hardware resources and software resources. Hardware resources may include main control chips, sensors, communication modules, power management units, mechanical structures, storage units, etc. Software resources may include operating systems, applications, security protocols, firmware upgrades, user management, and cloud service platforms, etc. The system resources configured by the smart lock can provide users with a convenient, safe, and intelligent door lock experience.

[0032] For example, assume that the smart lock is configured with three independent programs, Program 1, Program 2, and Program 3. The access rights of each program for the system resources configured for the smart lock are shown in Table 1 below: Table 1

[0033] As can be seen from Table 1, different programs have different access permissions to system resources.

[0034] Optionally, the setting of different access rights can also be adapted to the pairing relationship between the system program and the client for processing. The access rights of different programs can be managed to limit the access to system resources. It is also possible to limit which types of users, system programs, applications, etc. can access which resources through user account and permission settings. In the embodiments of the present disclosure, the setting of the management mechanism is conducive to improving the security of the use of smart locks.

[0035] Optionally, adapted to the intelligent control of smart locks, the method provided in the embodiments of the present disclosure may involve communication between smart locks, smart gateways, Internet of Things platforms, and clients. Figure 3 As shown in the figure, in the IoT system, the smart gateway plays the role of connecting devices, data transmission and security. As a terminal device, the smart lock is connected to the smart gateway through wireless or wired means, and then communicates with the IoT platform and the client. The client (such as a mobile phone APP) can interact with the IoT platform through the Internet to achieve remote control and status monitoring of the smart lock. In addition, through Bluetooth communication, short-range wireless data transmission and control can also be achieved between the client and the smart lock, providing users with a convenient and intelligent user experience.

[0036] In the disclosed embodiment, an application may refer to a computer program that completes one or more tasks, runs in user mode, has a visual user interface, and can interact with users. A client may refer to an application running on a computer, which provides services to users by communicating with other devices, obtaining or sending data. Among them, in the access rights to system resources, "access" may refer to the ability or scope of authority to interact between a system program and system resources. For example, in the direct control of hardware resources, a system program may directly interact with the hardware components of a device (such as CPU, memory, sensors, etc.). Different system programs may be granted different levels of hardware access rights. For example, when a device runs program 1, it can directly perform power management, while when the device runs program 2, it is limited to accessing sensor data under specific conditions.

[0037] Among them, Figure 1 As shown, the method performed by the smart lock may include S101 to S102: S101. In an initial state, a request sent by a client is received, and a target program is run based on a pairing relationship between the client and the smart lock running program; the target program is one of at least two programs.

[0038] S102: If a reset request is received, the validity of the reset request is detected; if valid, the reset request is restored to the initial state and the first program is run; if invalid, the target program is continued to run.

[0039] Optionally, the initial state may refer to the state of the smart lock after leaving the factory or undergoing certain specific operations (such as restoring factory settings). In the initial state, the smart lock has no user information, such as no key information (user fingerprint, password or other unlocking method information), that is, in the initial state, the smart lock cannot be opened by any non-key unlocking method. In terms of management mode, the smart lock in the initial state can preset an administrator mode or password for access and management when the lock is configured for the first time. In one example, the administrator mode may be the default setting when the first program is running.

[0040] Optionally, at least two pre-configured programs in the smart lock can run independently of each other and be coordinated and scheduled by the main controller when necessary. In the embodiment of the present disclosure, when the smart lock is in the initial state, the first program is run by default. Figure 4As shown, the target program running when the smart lock enters the working state can be determined by interacting with the client. Among them, the target program can be determined based on the pairing relationship between the client and at least two programs pre-configured with the smart lock. It can be understood that the different programs run by the smart lock have application programs corresponding to them respectively; exemplarily, the first program corresponds to the first client, and the second program corresponds to the second client; wherein the first client and the second client can correspond to different applications, such as different applications are developed for different programs pre-configured for the smart lock, and the first client and the second client correspond to different applications. The first client and the second client may also correspond to the same application, such as the identity information that supports the user to select the client in the same application, and different identity information is reflected as different clients, and has a corresponding relationship with different programs run by the smart lock.

[0041] Optionally, in the disclosed embodiment, the smart lock can determine the target program to be run subsequently in the initial state through the request sent by the client. Exemplarily, the smart lock runs the first program in the initial state. When receiving the request sent by the client, the smart lock can switch to run a non-first program paired with the client based on the request, thereby realizing flexible switching of running programs; it may also be determined based on the request that the first program is paired with the client, and the first program can continue to run. The target program run by the smart lock is determined by interacting with the client, which is conducive to simplifying the assembly operation of the smart lock and improving the user experience.

[0042] Optionally, the smart lock can be restored to its initial state by resetting. In the embodiment of the present disclosure, considering that the smart lock is pre-configured with at least two programs, in order to better manage the system resources accessed by different programs and ensure the safety of the use of the smart lock, each running program is set to have a corresponding reset method. Based on this, when the smart lock receives a reset request, it can first detect the validity of the reset request, and only when the reset request is valid (indicating that the reset request is initiated using the preset reset method corresponding to the currently running program), restore to the initial state and run the first program. Exemplarily, assuming that the currently running program is not the first program, when the reset is initiated using the reset method corresponding to the currently running program, the program running by the smart lock can be switched from the non-first program to the first program, thereby achieving flexible switching of the programs running by the smart lock and improving the ease of use of the smart lock and user experience.

[0043] In a feasible embodiment, receiving a request sent by the client in S101, and running the target program based on the pairing relationship between the client and the smart lock running program, includes at least one of the following S101a and S101b: S101a. Receive a first binding request sent by a first client through near field communication, continue to run the first program based on the pairing relationship between the first client and the first program, and establish a binding relationship with the first client.

[0044] S101b, receiving a second binding request sent by the second client through wireless communication and / or the Internet of Things platform, loading and running a non-first program paired with the second client, and establishing a binding relationship with a user account logged in to the second client.

[0045] Optionally, when the smart lock is in the initial state, the request received from the client may be a binding request to establish a binding relationship between the smart lock and the client, or may be a control-related request to process communication between the client and the smart lock.

[0046] The establishment of the binding relationship is related to the system resource configuration of the smart lock and the nature of the client (such as identity information). In order to distinguish the pairing relationship between different clients and the system program running on the smart lock from the user's perspective, different communication methods can also be configured for processing.

[0047] In one case, when setting for the first program, the client and the smart lock use near field communication technology (such as Bluetooth, NFC, etc.) to communicate. The client can send a binding request to the smart lock with the help of near field communication technology. At this time, when the smart lock determines that the client is paired with the first program through the pairing relationship, the first program can continue to run. When establishing a binding relationship between the smart lock and the client, the client can establish a short-range wireless connection with the smart lock through near field communication technology. Then, the client can initiate a binding request by scanning the device code on the smart lock, entering a preset pairing code, etc. After the binding relationship is established between the smart lock and the client (such as the binding between the smart lock and the smart device running the client), the user can control the smart lock through the client. Optionally, before establishing the binding relationship, in order to ensure the security of device control, the user can also enter user information (such as password, fingerprint, etc.) during the binding process to facilitate identity authentication in subsequent control. Optionally, if the user enters user information during the binding process, a binding relationship between the smart lock and the user account logged in to the client can also be established.

[0048] In one case, when setting for a non-first program (such as the second program preconfigured in the present disclosure), the client and the smart lock can communicate using various different communication technologies. Exemplarily, the client can communicate directly with the smart lock through a wireless network, or forward data through the Internet of Things platform. After receiving the binding request sent by the client, if the smart lock determines that the client is paired with any non-first program, it can load and run the non-first program and establish a binding relationship with the user account logged in to the client. In the embodiment of the present disclosure, compared with the setting for the first program, since the communication method configured for the non-first program is more diverse, in order to ensure the security of device control and the convenience of remote control, in this case, a binding relationship between the smart lock and the user account logged in to the client can be established. Exemplarily, a user can generate a virtual key that cooperates with the smart lock through the client, and the virtual key is actually associated with the user account, rather than directly bound to the device running the client. Optionally, the user account can be a kind of user information, which can be an account registered by the user in the client and belongs to him personally, or it can be an account built into the client for smart lock management.

[0049] In a feasible embodiment, the first system resource of the smart lock supports the entry of key information through the smart lock. Optionally, the smart lock is configured with an interactive module, which may include a fingerprint recognition module, a password input module, a human-computer interaction interface module, a voice module, a mechanical key module, etc. The user can operate the smart lock through the interactive module to achieve the entry of key information through the smart lock. Optionally, the key information may include fingerprint information, face information, password information, terminal information with NFC (near field communication) function or card information, etc.

[0050] Optionally, the first program has access rights to the first system resources; that is, when the smart lock runs the first program, the user can enter key information through the interaction module.

[0051] In one example, when running the first program, the method provided by the embodiment of the present disclosure also includes S103: in response to the entry operation of the key information, receiving and storing the first key information input by the operating object through the interactive module of the smart lock.

[0052] Optionally, the key information input operation responded by the smart lock includes an operation directly performed by the user on the interactive module of the smart lock and / or an input operation initiated by a client paired with the first program. The input of the first key information may include information for opening the door input by the user through the interactive module. Exemplarily, the user may input fingerprint information on the fingerprint collector of the smart lock, and the input of the fingerprint information enables the user to subsequently use the fingerprint to unlock the door.

[0053] In the embodiment of the present disclosure, the smart lock can directly respond to the key information input operation in the initial state, receive and store the first key information input through the interaction module of the smart lock, and at this time, the smart lock regards the first program as the program required to run when entering the working state. Figure 4 The system settings shown, in addition to using the client to determine the program running by the smart lock, can also determine, for the first program, the system programs that need to be run when the smart lock enters a normal working state through system settings (such as entering the first key information and administrator information through the interactive mode of the smart lock as shown in the above embodiment).

[0054] Optionally, the second program pre-configured in the smart lock cannot access the first system resources. In the disclosed embodiment, in order to meet the needs of certain specific scenarios, to prevent non-management personnel from arbitrarily entering key information, to strengthen the management of the smart lock, and to improve the security of the use of the smart lock, a program (such as the second program) that cannot access the first system resources can be pre-configured, and the effective management of the system resources can be achieved by switching the smart lock to run the second program. It can also flexibly adapt to different scenario requirements and provide corresponding smart lock control solutions.

[0055] In one example, when the smart lock is running the second program, the method provided by the embodiment of the present disclosure also includes S104: receiving and storing second key information sent by a client paired with the second program, where the second key information includes information remotely entered by the client.

[0056] Optionally, when the smart lock runs the second program, since it cannot access the first system resources, that is, it cannot enter the key information through the interactive module of the smart lock, at this time, in order to ensure the effective management of the smart lock, the key information used to unlock the smart lock can be entered through the client paired with the second program. Exemplary, in the management scenario of an apartment hotel, in order to prevent guests from arbitrarily changing the key information of the smart lock, the second key information is uniformly entered by the management personnel using the management system (client paired with the second program); when the guests check in at the front desk, the management personnel can remotely collect the fingerprint information of the guests through a third-party fingerprint collector, and send it to the smart lock through the client, and the smart lock can receive and store the second key information. Among them, the manager can also set the expiration time of the remotely entered second key information, so that the invalid second key information is deleted during the smart lock period, thereby improving the utilization rate of the storage space.

[0057] In a feasible embodiment, the smart lock includes at least one of a first reset button arranged on the outer structure and a second reset button arranged on the inner structure. In one example, the outer structure of the smart lock (such as being at the same structural level as the interaction module) may be provided with a first reset button (such as Figure 5The example on the left), and a second reset button (such as the inner structure obtained after the outer structure of the smart lock needs to be disassembled) can be arranged in the inner structure (such as the inner structure layer obtained after the outer structure of the smart lock needs to be disassembled) Figure 5 In the embodiment of the present disclosure, the specific layout position, shape, etc. of the first reset button and the second reset button are not limited and can be adjusted according to actual needs.

[0058] Optionally, the second system resource of the smart lock supports at least one of resetting the system through the first reset button, resetting the system through the second reset button, and resetting the system through an unbinding operation initiated by the client. The first program has access rights to the second system resource; the second program preconfigured by the smart lock cannot access some system resources (system resource x) in the second system resource that support resetting the system through the first reset button. That is, relative to running the first program, when the smart lock runs the second program, it cannot access system resource x in the second system resource, and therefore, it is impossible to reset the smart lock through the first reset button.

[0059] Optionally, when the target program other than the first program is running, detecting the validity of the reset request in S102 includes at least one of the following steps A1 to A2: Step A1: If the reset request is initiated through the first reset button, it is determined that the reset request is invalid.

[0060] Step A2: If the reset request is initiated by the second reset button, or is initiated by an unbinding operation of a client paired with the target program, it is determined that the reset request is valid.

[0061] For example, Figure 4 As shown, when the smart lock runs a non-first program, the reset request that the smart lock can respond to includes one initiated by the second reset button and one initiated by performing an unbinding operation on a client paired with the non-first program. Optionally, the non-first program can be a second program preconfigured in the smart lock described in the embodiment of the present disclosure.

[0062] Among them, when the smart lock can correctly receive the reset request initiated by the client paired with the target program, the smart lock defaults to having a valid binding relationship with the client. Optionally, when the user triggers the unbinding operation on the client, the client will send a reset request to the smart lock with which it has a binding relationship. On the client side, the premise for sending the reset request is to determine that there is a valid binding relationship with the smart lock; on the smart lock side, the correct reception of the reset request is based on the valid binding relationship with the client. The establishment of the binding relationship can occur when the client is connected to the smart lock (either directly or indirectly). In the embodiment of the present disclosure, when the smart lock receives a reset request initiated by the unbinding operation of the client paired with the target program, it determines that the reset request is valid.

[0063] Exemplarily, in a scenario where key information is relatively centrally managed (such as dormitories, apartments, etc.), the smart lock runs the second program. In order to prevent mobile personnel (such as guests who only stay in the apartment for one day) from triggering the reset of the smart lock and disrupting the management order, it can be distinguished by the access rights to system resources that support reset. Relatively speaking, the access right level of the second program to system resources is lower than the access right level of the first program to system resources. It can be understood that the operation of triggering the reset directly through the first reset button arranged in the outer structure is simpler than the operation of triggering the reset through the second reset button arranged in the inner structure. The user can initiate the reset without disassembling the outer structure of the smart lock. Therefore, when running the pre-configured second program or non-first program, it can be given a smaller system resource access right, such as only being able to trigger the reset through the second reset button, thereby improving the use safety of the smart lock running the non-first program, and at the same time avoiding the confusion of operations when switching between different programs.

[0064] Optionally, when the first program is run, detecting the validity of the reset request in S102 includes at least one of the following steps B1 to B2: Step B1: If the reset request is initiated by performing an unbinding operation on a client paired with the first program, and it is determined that the user information of the client matches the user information bound to the first program, then the reset request is determined to be valid.

[0065] Optionally, for the smart lock running the first program, it can trigger the reset of the smart lock by unbinding the client from the smart lock. To ensure the validity of the reset request and avoid the failure of the smart lock caused by the reset of the smart lock triggered by a non-administrator user, such as a child curiously holding a mobile phone and randomly pressing buttons, resulting in unintentional unbinding, during the unbinding operation, the embodiment of the present disclosure also determines whether the user information of the client matches the user information bound to the first program, such as whether the user who initiated the unbinding request is an administrator. If they match, the reset request is confirmed to be valid. Among them, the user information may include face information, fingerprint information, voice information, etc.

[0066] Step B2: If the reset request is initiated through the first reset button or the second reset button, it is determined that the reset request is valid.

[0067] Optionally, when the smart lock runs the first program, the reset operation of the smart lock can be triggered by the first reset button and / or the second reset button. In one example, triggering the reset operation by the first reset button can effectively simplify the convenience of restoring the factory settings of the smart lock, while triggering the reset operation by the second reset button can effectively reduce the occurrence of invalid reset due to damage to the first reset button or insensitive triggering.

[0068] In a feasible embodiment, in S101, based on the pairing relationship between the client and the smart lock running program, running the target program includes the following steps C1 to C3: Step C1: Based on the request sent by the client, obtain the user information and attribute information of the client.

[0069] Step C2: Determine a target program that matches the client based on the pre-registered system program information and attribute information.

[0070] Step C3: Run the target program and establish a binding relationship with the client based on the user information; The pre-registered system program information includes pairing information between each program and the client; the attribute information includes information for identifying the client and / or information for identifying the target program.

[0071] Optionally, when using the client, the user can register personal user information, such as account number, key for logging into the client, etc. The attribute information of the client can be pre-set or generated to adapt to the user's operation. Exemplarily, user A, as the manager of the hotel H smart lock, can register using the client developed for the administrator, or can register as an "administrator" in the universal client. At this time, the client will store user A's user information and identity information used to identify that the client belongs to the management terminal. The client can also generate an identifier (such as an ID) of the target program paired with the management terminal.

[0072] Optionally, the pre-registered system program information includes pairing information of each program pre-configured in the smart lock and each client. Each system program has a unique identifier (such as an ID or version number) inside the smart lock to distinguish different programs. In the firmware or configuration file of the smart lock, the pairing information of each system program and the corresponding application (such as a client) can be pre-registered or set. The pairing information may include program ID, supported communication protocols, functional characteristics, etc. When the smart lock receives a binding request, it can query the system program with the highest matching degree with the client based on the binding request sent by the client and the pre-registered system program information. Matching factors may consider program ID, communication protocol, functional requirements, etc. After the smart lock determines the matching system program, it can load and run the system program to process the client's binding request. At this time, when the smart lock officially runs the system program (non-initial state), it can transmit and interact with the client to complete operations such as unlocking, querying status, and setting parameters.

[0073] Optionally, if the client has a pairing relationship with a second program preconfigured with the smart lock, when the target program is run, the second program is loaded and switched from the first program to the second program.

[0074] For example, in the initial state (when the smart lock runs the first program), if a binding request is sent through a client paired with the second program, the smart lock will load and run the second program when it determines that the second program is the target program based on the binding request. Figure 4 As shown, the system program that the smart lock needs to run can be determined by App binding. It is understandable that the pre-configured system program in the smart lock can be adapted to different scenario requirements, and the programs that can be run by the smart lock have different identities in different scenarios. For example, in the apartment management scenario, the smart lock runs the second program, and its identity information can be the engineering management end; in the home management scenario, the smart lock runs the first program, and its identity information can be the user management end. Under different identities, the functions or operations supported by the system resources of the smart lock are different.

[0075] In a feasible embodiment, when the second program pre-configured by the smart lock is run, a reset request is received and the validity of the reset request is detected in S102, including steps D1 to D2: Step D1: In response to a reset request triggered by a second reset button arranged in the inner structure of the smart lock, an unbinding request is sent to a client paired with a second program.

[0076] Step D2: receiving information based on the unbinding request feedback; if the information indicates that the unbinding is agreed, then releasing the binding relationship with the client paired with the second program, and determining that the reset request is valid; if the information indicates that the unbinding is not required, then determining that the reset request is invalid, and issuing an alarm message.

[0077] In the disclosed embodiment, the pre-configured second program is used to centrally manage the information of multiple users. In order to improve the legitimacy and security of the program running by the smart lock during the reset phase, and to prevent criminals from dismantling the smart lock and resetting the system through the second reset button, when the reset request is triggered by the second reset button arranged on the mechanical structure of the smart lock, the smart lock does not directly return to the initial state, but sends an unbinding request to the client paired with the second program based on the reset request (at this time, the smart lock determines that there is a valid binding relationship with the client), and reminds the user 1 using the client through the unbinding request that there is a user attempting to reset the smart lock. If the reset request is implemented by user 1 or known in advance, user 1 can unbind the binding relationship with the smart lock by agreeing to the unbinding operation, thereby determining that the reset request is valid; if the reset request is not known to user 1, it may be initiated by other non-management users. At this time, user 1 can maintain the binding relationship with the smart lock by refusing the unbinding operation, and the smart lock thus determines that the reset request is invalid, and can send an alarm message to remind the user. Optionally, the alarm message can be sent to the client for broadcast, or it can be directly broadcast through the interactive module of the smart lock.

[0078] In the embodiments of the present disclosure, the system resources adapted to the configuration of the smart lock can be pre-configured with a variety of system programs, and by granting different system resource access rights to the system programs, the flexibility of using the smart lock can be effectively improved, so as to flexibly switch the corresponding running programs according to the different needs of users. The first program and the second program in the above embodiments are only used as an example, and the embodiments of the present disclosure may also include a third program, a fourth program, etc.

[0079] In a possible embodiment, if Figure 2 As shown, the method executed by the electronic device (applied to the client) may include S201 to S202: S201. Send a request to the smart lock in an initial state so that the smart lock runs a target program that has a pairing relationship with the client; the target program is a program that has a pairing relationship with the client.

[0080] S202. If an unbinding operation initiated by the operation object is received, a reset request is sent to the smart lock, so that when the smart lock confirms that the reset request is valid, it is restored to the initial state and runs the first program.

[0081] Optionally, the client can write the identity information of the smart lock and determine the system program running on the smart lock by sending a binding request to the smart lock. Correspondingly, the smart lock can be reset and restored to its initial state by unbinding the smart lock.

[0082] In the embodiments of the present disclosure, users can flexibly switch the programs running on the smart lock through the client. For example, to meet different scene requirements, such as Figure 3 As shown, when client A is a client paired with the second program, client A needs to be centrally managed for multiple users, and communicates more with the smart lock remotely. It can communicate with the smart lock through the Internet through the Internet of Things platform and the smart gateway. When client B is a client paired with the first program, the number of users involved in daily unlocking operations is small, and client B is more often used when close to the smart lock, and it can communicate with the client at close range through the Bluetooth protocol.

[0083] In a feasible embodiment, when sending a request to the smart lock in the initial state in S201, at least one of the following S201a-S201b may be included: S201a. If the client is the first client paired with the first program, a first binding request is sent to the smart lock in the initial state through near field communication, so that the smart lock runs the first program paired with the first client and establishes a binding relationship with the first client.

[0084] S201b. If the client is a second client paired with a non-first program, a second binding request is sent to the smart lock in the initial state through wireless communication and / or the Internet of Things platform, so that the smart lock loads and runs the non-first program paired with the second client, and establishes a binding relationship with the user account logged in to the second client.

[0085] Optionally, for the first client paired with the first program, its setting uses near field communication technology to communicate with the smart lock. For the second client paired with a non-first program, its setting can communicate with the smart lock through various communication technologies, such as near field communication, wireless network, Internet of Things platform, etc. For the binding request initiated by the client paired with the first program, the smart lock can continue to run the first program after entering the working state, and establish a binding relationship with the client (such as establishing a binding relationship with the device running the client, or establishing a binding relationship with the user account logged in to the client). For the binding request initiated by the client paired with a non-first program, the smart lock needs to load and switch to run the non-first program, and establish a binding relationship with the user account logged in to the client. Relatively speaking, since the communication method configured for the second client paired with a non-first program is more flexible, in order to ensure the security of device control, when establishing a binding relationship between the smart lock and the second client, the requirements are higher than the binding relationship established for the first client paired with the first program.

[0086] In a feasible embodiment, when the client is paired with the first program, the method provided by the embodiment of the present disclosure also includes S203: receiving first key information sent by the smart lock; the first key information includes the key information input by the operating object through the interactive module of the smart lock, which is received and stored when the smart lock responds to the entry operation of the key information.

[0087] Optionally, when user 1 enters the first key information through the interactive module of the smart lock, the smart lock can send the first key information to the client, so that the first key information corresponding to user 1 can be managed through the client, such as setting the validity period, deletion, modification, etc. of the first key information.

[0088] In a feasible embodiment, when the client is paired with the second program, the method provided by the embodiment of the present disclosure also includes S204: in response to the entry operation of the key information, obtaining the second key information input by the operation object through the self-configured interaction module and / or the connected third-party interaction module; sending the second key information to the smart lock.

[0089] Optionally, the third-party interaction module may include a face recognition module, a fingerprint recognition module, etc., which are connected to the client to realize data transmission. For example, the smart lock used for the entrance guard of the community gate is managed by the property. When a new owner moves in, the property manager can enter the new owner's face, fingerprint, IC card and other information through the client. If the computer device on which the client is installed does not have an interaction module, a third-party interaction module can be installed externally. Through the communication between the third-party interaction module and the computer device, the second key information entered by the new owner can be obtained and transmitted to the smart lock via the Internet.

[0090] In a feasible embodiment, before sending a request to a smart lock in an initial state, it also includes S200: setting attribute information of the client in response to a setting operation of a management right; the attribute information includes information for identifying the identity of the client and / or information for identifying a target program.

[0091] Among them, the attribute information is carried in the request and sent to the smart lock, and the smart lock combines the pre-registered system program information and the attribute information to determine the target program that matches the client; the pre-registered system program information includes the pairing information of each program and the client.

[0092] Optionally, a client may correspond to one management mode or include multiple management modes. In the case of multiple management modes, the user can switch management roles through the client, such as switching from a family member manager to a community member manager (the two have different management permissions). When switching the user role registered in the client, it is equivalent to setting the attribute information of the client. At this time, when a binding request is sent to the smart lock through the client, the program running by the smart lock can be switched based on the pairing relationship between the client and the system program.

[0093] In the disclosed embodiment, the program running on the smart lock can be flexibly switched by switching the identity information of the client and then sending a binding request.

[0094] In a feasible embodiment, the smart lock includes at least one of a first reset button arranged on the outer structure and a second reset button arranged on the inner structure; the second system resources of the smart lock support at least one of resetting the system through the first reset button, resetting the system through the second reset button, and resetting the system through an unbinding operation initiated by the client.

[0095] The first program has access rights to the second system resources; the second program pre-configured by the smart lock cannot access some of the second system resources that support resetting the system through the first reset button; if the smart lock receives an invalid reset system operation, it continues to run the current program. It is understandable that when the smart lock runs the first program, the user can control the reset of the smart lock by unbinding the client, triggering the first reset button, and triggering the second reset button.

[0096] In a feasible embodiment, when the client is paired with the second program preconfigured with the smart lock, the method provided by the embodiment of the present disclosure further includes S205 to S207: S205. Receive an unbinding request sent by the smart lock in response to a reset operation triggered by a second reset button; the second reset button is arranged on the inner structure of the smart lock.

[0097] S206. If the binding relationship with the smart lock is released, information indicating consent to the unbinding is fed back to the smart lock, so that the smart lock releases the binding relationship with the client and determines that the reset operation is valid, restores to the initial state and runs the first program.

[0098] S207. If the unbinding request is rejected, information indicating that no unbinding is required is fed back to the smart lock, so that the smart lock determines that the reset operation is invalid and issues an alarm message.

[0099] In the disclosed embodiment, the pre-configured second program can be used to centrally manage multiple user information. In order to improve the legitimacy and security of switching the program running by the smart lock through the reset stage, when the reset request is triggered by the second reset button arranged on the mechanical structure of the smart lock, the smart lock does not directly restore to the initial state, but sends an unbinding request to the client paired with the second program based on the reset request (at this time, the smart lock determines that there is a valid binding relationship with the client). The unbinding request reminds the user 1 using the client that a user is attempting to reset the smart lock. If the reset request is implemented by user 1 or known in advance, user 1 can agree to the unbinding operation to release the binding relationship with the smart lock, so that the smart lock determines that the reset request is valid, and restores to the initial state and switches to run the first program; if the reset request is not known to user 1, it may be initiated by other non-management users. At this time, user 1 can refuse the unbinding operation to maintain the binding relationship with the smart lock, and the smart lock determines that the reset request is invalid, continues to run the current second program, and can also send an alarm message to remind the user. Optionally, the alarm message can be sent to the client for broadcast, or it can be directly broadcast through the interactive module of the smart lock.

[0100] Optionally, the relevant embodiments of the method applied to the client may also refer to the relevant embodiments provided by the method executed by the smart lock, and the embodiments of the present disclosure will not be repeated here.

[0101] A feasible application example is given below to better explain the technical solution provided by the above embodiment.

[0102] Assume that the smart lock is pre-configured with a first program and a second program. The first program is used to manage the entrance door a of owner A, and the second program is used to manage the community door b for all owners of the community. In order to better manage the community and improve the efficiency of smart lock maintenance, the entrance door a and the community door b can be installed with the same smart lock. Adapting to the first program, it is configured with a first client; adapting to the second program, it is configured with a second client.

[0103] When the developer purchases a large number of smart locks and installs them in different locations in the community, each smart lock is in the initial state and runs the first program. The installer can use the second client to bind the administrator account to the smart lock installed at the community door, and switch the smart lock from running the first program to running the second program, thereby improving the convenience of smart lock installation. In addition, for the smart locks installed on the doors of each unit, the installer can enter the pre-configured first key information through the system settings on the smart lock to run the first program when the smart lock enters the working state; the owner can also use the first client to bind the personal account to the smart lock installed on the unit door, or use near-field communication technology to bind the first client to the smart lock without registering a personal account.

[0104] Correspondingly, the property manager of the community can assist the community owners in entering the second key information through the second client. For example, the owners can go to the property management center to request the property manager to enter the facial information used by the individual to enter and exit the community gate. The property manager can use a computer installed with the second client to assist the owner in entering the personal key information and send it to the smart lock end of the community gate, so that the owner can enter and exit the community gate with his or her personal key information.

[0105] Correspondingly, each owner can reset the smart lock installed on the unit door by using the first reset button arranged on the outer structure of the smart lock, so that the smart lock returns to its initial state and re-enters the first key information used by the owner's personal entry and exit door lock.

[0106] Optionally, due to changes in the owners' needs to enter and exit the community, the community gate originally opened at the south gate may be closed. At this time, in order to increase the utilization rate of the smart lock, the smart lock originally set at the south gate can be removed and installed on the unit door of a certain owner for use. At this time, the property manager can unbind the smart lock through the second client to restore the smart lock to its initial state. The installer can also remove the outer structure of the smart lock, and trigger the reset of the smart lock through the second reset button arranged in the inner structure of the smart lock, and restore it to its initial state.

[0107] In the disclosed embodiment, the operation of the installer in installing the smart lock on site is simplified, which is conducive to improving the efficiency of smart lock assembly, and can realize flexible switching of the programs running by the smart lock, thereby improving the safety and utilization rate of the smart lock.

[0108] It should be noted that in the optional embodiments of the present disclosure, the information involved (such as key information, user information and other related data), when the above embodiments of the present disclosure are applied to specific products or technologies, needs to obtain permission or consent from the user, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions. In other words, if the embodiments of the present disclosure involve data related to the object, these data need to be obtained with the authorization and consent of the object and in compliance with the relevant laws, regulations and standards of the country and region.

[0109] The disclosed embodiment provides a control device for a smart lock, which is applied to the smart lock, wherein the smart lock is pre-configured with at least two programs that are independent of each other and have different access rights to system resources, and the smart lock runs a preset first program in an initial state. The control device for the smart lock may include: a first binding module and a first reset module.

[0110] Among them, the first binding module is used to receive a request sent by the client in the initial state, and run the target program based on the pairing relationship between the client and the smart lock running program; the target program is one of at least two programs; the first reset module is used to detect the validity of the reset request if a reset request is received; if valid, restore to the initial state and run the first program; if invalid, continue to run the target program.

[0111] In another embodiment of the present disclosure, a control device for a smart lock applied to a client is also provided, and the device may include a second binding module and a second reset module.

[0112] Among them, the second binding module is used to send a request to the smart lock in the initial state so that the smart lock runs a target program that has a pairing relationship with the client; the target program is a program that has a pairing relationship with the client; the second reset module is used to send a reset request to the smart lock if an unbinding operation initiated by the operation object is received, so that when the smart lock confirms that the reset request is valid, it will be restored to the initial state and run the first program.

[0113] Among them, the smart lock is configured with at least two programs that are independent of each other and have different access rights to system resources; the target program is one of the at least two programs; and the smart lock runs a preset first program in an initial state.

[0114] The device of the embodiments of the present disclosure can execute the method provided by the embodiments of the present disclosure, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present disclosure correspond to the steps in the method of each embodiment of the present disclosure. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.

[0115] The modules involved in the embodiments described in the present disclosure can be implemented by software. The name of the module does not limit the module itself in some cases. For example, the first binding module can also be described as "a module that runs the target program based on the pairing relationship between the client and the smart lock running program", "a first module", etc.

[0116] An electronic device is provided in an embodiment of the present disclosure, which may specifically be a smart lock or a terminal device. The host of the device includes a memory, a processor, and a computer program stored in the memory. The processor executes the above-mentioned computer program to implement the steps of the smart lock control method. Compared with the related art, the following can be achieved: In the embodiment of the present disclosure, the system program run by the smart lock can be flexibly switched in the initial device binding stage and the device reset stage, which simplifies the use of the smart lock and effectively reduces the maintenance cost of the smart lock. In addition, the smart lock can complete the binding through the client, which can effectively improve the assembly efficiency of the smart lock and improve the user experience.

[0117] In an alternative embodiment, an electronic device is provided, such as Figure 6 As shown, Figure 6 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present disclosure.

[0118] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0119] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0120] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.

[0121] The memory 4003 is used to store the computer program for executing the embodiment of the present disclosure, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.

[0122] Among them, electronic devices include but are not limited to: smart locks and terminal devices.

[0123] An embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.

[0124] The embodiments of the present disclosure also provide a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiments when executed by a processor.

[0125] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than that shown or described in the text.

[0126] It should be understood that, although the flowchart of the embodiment of the present disclosure indicates each operation step by arrows, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present disclosure, the implementation steps in each flowchart can be executed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on the actual implementation scenario. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage in these sub-steps or stages can also be executed at different times. In scenarios with different execution times, the execution order of these sub-steps or stages can be flexibly configured according to demand, and the embodiment of the present disclosure does not limit this.

[0127] The above is only an optional implementation method for some implementation scenarios of the present disclosure. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present disclosure, other similar implementation methods based on the technical ideas of the present disclosure are also within the protection scope of the embodiments of the present disclosure.

Claims

1. A control method for a smart lock, characterized in that: Applied to a smart lock, the smart lock is pre-configured with at least two programs that are independent of each other and have different access rights to system resources, and the smart lock runs a preset first program in an initial state; The method comprises: In the initial state, a request sent by a client is received, and a target program is run based on a pairing relationship between the client and the smart lock running program; the target program is one of the at least two programs; If a reset request is received, the validity of the reset request is detected; if valid, the reset request is restored to the initial state and the first program is run; if invalid, the target program is continued to run.

2. The method according to claim 1, characterized in that: The receiving of the request sent by the client and running the target program based on the pairing relationship between the client and the smart lock running program includes at least one of the following: receiving a first binding request sent by a first client through near field communication, and based on the pairing relationship between the first client and the first program, continuing to run the first program and establishing a binding relationship with the first client; A second binding request sent by a second client is received through wireless communication and / or the Internet of Things platform, a non-first program paired with the second client is loaded and run, and a binding relationship with a user account logged in to the second client is established.

3. The method according to claim 1, characterized in that The first system resource of the smart lock supports the entry of key information through the smart lock; the first program has access rights to the first system resource; The second program preconfigured by the smart lock cannot access the first system resource; When the first program is run, the method further includes: in response to a key information entry operation, receiving and storing first key information input by an operation object through an interactive module of the smart lock; And / or, when running the second program, the method further includes: receiving and storing second key information sent by a client paired with the second program, the second key information including information remotely entered through the client.

4. The method according to claim 1, characterized in that: The smart lock includes at least one of a first reset button arranged on the outer structure and a second reset button arranged on the inner structure; the second system resource of the smart lock supports at least one of resetting the system through the first reset button, resetting the system through the second reset button, and resetting the system through an unbinding operation initiated by a client; Among them, the first program has access rights to the second system resources; the second program preconfigured by the smart lock cannot access part of the second system resources that support resetting the system through the first reset button.

5. The method according to claim 1 or 4, characterized in that: The smart lock includes at least one of a first reset button arranged on the outer structure and a second reset button arranged on the inner structure; When a target program other than the first program is running, detecting the validity of the reset request includes at least one of the following: If the reset request is initiated by the first reset button, determining that the reset request is invalid; If the reset request is initiated by the second reset button, or is initiated by an unbinding operation performed by a client paired with the target program, then determining that the reset request is valid; And / or, when running the first program, detecting the validity of the reset request includes at least one of the following: If the reset request is initiated by performing an unbinding operation on a client paired with the first program, and it is determined that the user information of the client matches the user information bound to the first program, then the reset request is determined to be valid; If the reset request is initiated through the first reset button or the second reset button, it is determined that the reset request is valid.

6. The method according to claim 1, characterized in that The running of the target program based on the pairing relationship between the client and the smart lock running program includes: Based on the request sent by the client, obtaining user information and attribute information of the client; Determining a target program matching the client based on the pre-registered system program information and the attribute information; Running the target program and establishing a binding relationship with the client based on the user information; The pre-registered system program information includes pairing information between each program and the client; the attribute information includes information for identifying the client and / or information for identifying the target program.

7. The method according to claim 1, 2 or 4, characterized in that: When running the second program preconfigured by the smart lock, receiving the reset request and detecting the validity of the reset request includes: In response to a reset request triggered by a second reset button disposed on the inner structure of the smart lock, sending an unbinding request to a client paired with the second program; Receive information based on the unbinding request feedback, if the information indicates that the unbinding is agreed, release the binding relationship with the client paired with the second program, and determine that the reset request is valid; if the information indicates that no unbinding is required, determine that the reset request is invalid, and issue an alarm message.

8. A method for controlling a smart lock, characterized in that: Applied to a client, the method comprises: Sending a request to the smart lock in an initial state so that the smart lock runs a target program that has a pairing relationship with the client; the target program is a program that has a pairing relationship with the client; If an unbinding operation initiated by the operation object is received, a reset request is sent to the smart lock, so that when the smart lock confirms that the reset request is valid, it is restored to an initial state and runs the first program; Among them, the smart lock is configured with at least two programs that are independent of each other and have different access rights to system resources; the target program is one of the at least two programs; and the smart lock runs the preset first program in the initial state.

9. The method according to claim 8, characterized in that The sending of a request to the smart lock in the initial state includes at least one of the following: If the client is the first client paired with the first program, sending a first binding request to the smart lock in the initial state through near field communication, so that the smart lock runs the first program paired with the first client and establishes a binding relationship with the first client; If the client is a second client paired with a non-first program, a second binding request is sent to the smart lock in the initial state through wireless communication and / or the Internet of Things platform, so that the smart lock loads and runs the non-first program paired with the second client, and establishes a binding relationship with the user account logged in to the second client.

10. An electronic device, characterized in that: The electronic device comprises at least one transceiver and at least one processor coupled to the at least one transceiver, wherein the at least one processor is configured to perform the steps of the method according to any one of claims 1 to 7 or 8 to 9.