Intelligent door lock control method and intelligent door lock

By receiving smart door lock control signals and determining user mode identifiers to match permissions, the problem of permission confusion in smart door lock control is solved, and more refined permission management and higher security is achieved.

CN120048031APending Publication Date: 2025-05-27江西科利金属制品有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510177132.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-18
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

When controlling smart door locks, the existing technology lacks an effective permission control mechanism, which leads to easy confusion of user rights, which may lead to illegal users performing operations that should not be allowed or some users are unable to use door locks normally, posing a safety hazard.

Method used

By receiving the door lock control signal, the user mode identification is determined, and the corresponding control authority is determined based on the user mode identification, and the permission matching is performed. If the signal is within the permission range, the corresponding operation is performed.

Benefits of technology

It realizes more refined permission management, avoids security problems caused by operation chaos, effectively distinguishes and manages the permissions of different users, and improves the security and reliability of the door lock system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120048031A_ABST
    Figure CN120048031A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of intelligent door locks, and particularly relates to an intelligent door lock control method and an intelligent door lock. Wherein the door lock control signal is used for representing that a user requests to carry out certain operation on the door lock; determining a user mode identifier based on the door lock control signal; determining a control authority corresponding to the user mode identifier; matching the control authority corresponding to the user mode identifier with the door lock control signal; and if the door lock control signal is within the control authority corresponding to the user mode identifier, executing an operation corresponding to the door lock control signal. According to the method, the permissions of different users can be effectively distinguished and managed, and the safety and reliability of the door lock system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of intelligent door locks, and particularly relates to an intelligent door lock control method and an intelligent door lock. Background Art

[0002] An intelligent door lock is a door lock system based on modern technologies (such as Bluetooth, Wi-Fi, fingerprint recognition, passwords, etc.), which can provide a more convenient, intelligent and secure access control management method. Different from traditional mechanical door locks, intelligent door locks can usually be unlocked and managed through mobile applications, fingerprint recognition, facial recognition, remote control, voice assistants, etc.

[0003] In the prior art, when controlling an intelligent door lock, different users may have different permissions. However, due to the lack of a clear permission control mechanism, the operation permissions of all users when using the intelligent door lock are prone to confusion. For example, a visitor may accidentally attempt to perform an administrator-level operation, or a user may not be correctly identified, resulting in incorrect door lock operations. Without reasonable permission differentiation, there may be situations where illegal users can perform operations that should not be allowed or some users cannot use the door lock normally, thus leading to potential security risks.

[0004] In summary, when controlling an intelligent door lock, there is a problem of potential security risks due to the inability to effectively distinguish and manage the permissions of different users. Summary of the Invention

[0005] The embodiments of this application provide an intelligent door lock control method and an intelligent door lock, which can solve the problem of potential security risks in the prior art when controlling an intelligent door lock due to the inability to effectively distinguish and manage the permissions of different users.

[0006] In a first aspect, the embodiments of this application provide an intelligent door lock control method, including:

[0007] Receiving a door lock control signal; wherein, the door lock control signal is used to represent a user's request to perform a certain operation on the door lock;

[0008] Based on the door lock control signal, determining a user mode identifier; wherein, the user mode identifier is used to determine the user mode type corresponding to the door lock control signal;

[0009] Determining the control permission corresponding to the user mode identifier; wherein, the control permission corresponding to the user mode identifier is used to represent the operation permission range corresponding to the user mode type corresponding to the door lock control signal;

[0010] Matching the door lock control signal with the control permission corresponding to the user mode identifier;

[0011] If the door lock control signal is within the control authority corresponding to the user mode identifier, perform the operation corresponding to the door lock control signal.

[0012] In the technical solution described above in the embodiments of the present application, it has at least the following technical effects:

[0013] The intelligent door lock control method provided by the present application first receives a door lock control signal, then determines a user mode identifier based on the door lock control signal, which is beneficial to knowing the user mode type corresponding to the door lock control signal, and then determines the control authority corresponding to the user mode identifier, which is beneficial to knowing the operation authority range corresponding to the user mode type corresponding to the door lock control signal, and matches the control authority corresponding to the user mode identifier with the door lock control signal. If the door lock control signal is within the control authority corresponding to the user mode identifier, perform the operation corresponding to the door lock control signal. This method can achieve more refined authority management by classifying and restricting control authorities based on user mode identifiers, and avoid security problems caused by chaotic operations. This method can not only effectively distinguish and manage the authorities of different users, but also reduce security problems caused by improper authority management, and improve the security and reliability of the door lock system.

[0014] In a possible implementation manner of the first aspect, the determining the user mode identifier based on the door lock control signal includes:

[0015] Extract the signal type from the door lock control signal; wherein, the signal type includes local control or remote control;

[0016] When the signal type is the local control, obtain the first input information and determine the user mode identifier based on the first input information; wherein, the first input information is the information input by the user through the intelligent door lock.

[0017] When the signal type is the remote control, obtain the identity information of the user from the user terminal of the user, and determine the user mode identifier based on the identity information of the user; wherein, the user terminal is the intelligent door lock remote control system.

[0018] In a possible implementation manner of the first aspect, the determining the user mode identifier based on the first input information includes:

[0019] Extract the data table corresponding to the input type from the door lock database based on the input type of the first input information; wherein, the door lock database is the local database of the intelligent door lock.

[0020] Match the first input information with the data table.

[0021] When it is determined that the first input information matches the data table successfully, query the user mode identifier corresponding to the first input information from the data table.

[0022] In a possible implementation manner of the first aspect, obtaining the identity information of the user from the user terminal of the user includes:

[0023] Sending a user verification signal to the user terminal; wherein, the user verification signal is used to trigger the user terminal to verify the identity of the user;

[0024] Receiving the identity information of the user sent by the user terminal; wherein, the identity information of the user is sent by the user terminal when it is determined that the user verification information matches the pre-recorded information corresponding to the login information of the user, the user verification information is obtained by the user terminal based on the user verification signal, the pre-recorded information corresponding to the login information of the user is obtained by the user terminal from the cloud database based on the login information of the user, and the login information of the user is used to represent the account information used by the user to log in to the user terminal.

[0025] In a possible implementation manner of the first aspect, determining the control authority corresponding to the user mode identifier includes:

[0026] Extracting a control authority mapping table from the door lock database; wherein, the control authority mapping table includes the operation authority range corresponding to each user mode type corresponding to the user mode identifier;

[0027] Querying the control authority corresponding to the user mode identifier from the control authority mapping table.

[0028] In a possible implementation manner of the first aspect, performing the operation corresponding to the door lock control signal includes:

[0029] Identifying the operation category corresponding to the door lock control signal; wherein, the operation category includes a basic operation or a dynamic operation;

[0030] When it is identified that the operation category corresponding to the door lock control signal is the basic operation, obtaining a basic control instruction corresponding to the door lock control signal from the control instruction set of the door lock database; according to the basic control instruction corresponding to the door lock control signal, controlling an execution module corresponding to the basic control instruction to perform the operation corresponding to the door lock control signal;

[0031] When it is recognized that the operation category corresponding to the door lock control signal is the dynamic operation, call the instruction generation logic, and based on the instruction generation logic and the door lock control signal, generate a dynamic control instruction corresponding to the door lock control signal; according to the dynamic control instruction corresponding to the door lock control signal, control the execution module corresponding to the dynamic control instruction to execute the operation corresponding to the door lock control signal.

[0032] In a possible implementation manner of the first aspect, the method further includes:

[0033] Determine the user identification of the user based on the first input information or extract the user identification from the identity information of the user;

[0034] Based on the user identification, determine whether the user has specific permissions;

[0035] When the user has specific permissions, according to the specific permissions and the control permissions corresponding to the user mode identification, determine the final permissions of the user;

[0036] Match the door lock control signal with the final permissions of the user;

[0037] If the door lock control signal is within the final permissions of the user, execute the operation corresponding to the door lock control signal.

[0038] In a possible implementation manner of the first aspect, the method further includes:

[0039] Receive a permission modification request, and obtain second input information based on the permission modification request; wherein, the second input information is used to verify the identity of the administrator;

[0040] After the second input information is verified successfully, obtain the target user identification and the modified permissions for the target user; wherein, the target user identification is used to represent the user identification corresponding to the target user for which the permissions are modified;

[0041] Obtain third input information. After the third input information is verified successfully, determine the user mode identification corresponding to the target user and the control permissions corresponding to the user mode identification corresponding to the target user according to the target user identification; wherein, the third input information is used to verify the identity of the administrator, and the second input information and the third input information are input information of different input types;

[0042] According to the modified permissions for the target user and the control permissions corresponding to the user mode identification corresponding to the target user, determine the specific permissions of the target user, and perform a specific permission mark on the target user identification to obtain the marked target user identification;

[0043] Update the door lock database based on the tagged target user identifier and the modified permissions for the target user.

[0044] In a possible implementation manner of the first aspect, the method further includes:

[0045] Receive a permission update signal sent by the cloud database;

[0046] Based on the permission update signal, obtain permission update information from the cloud database; wherein, the permission update information includes the tagged target user identifier and the modified permissions for the target user;

[0047] Update the door lock database based on the permission update information.

[0048] In a possible implementation manner of the first aspect, the method further includes:

[0049] If the door lock control signal is not within the control permissions corresponding to the user mode identifier, generate a notification message; wherein, the notification message is used to inform the user that the operation corresponding to the door lock control signal is not authorized;

[0050] When the signal type is the local control, send the notification message to the voice playback module of the smart door lock so that the voice playback module plays the notification message;

[0051] When the signal type is the remote control, send the notification message to the user terminal to notify the user that they are not authorized.

[0052] In a second aspect, an embodiment of the present application provides a smart door lock control device, including:

[0053] A receiving unit, configured to receive a door lock control signal; wherein, the door lock control signal is used to represent a user's request to perform a certain operation on the door lock;

[0054] An identification determination unit, configured to determine a user mode identifier based on the door lock control signal; wherein, the user mode identifier is used to determine the user mode type corresponding to the door lock control signal;

[0055] A permission determination unit, configured to determine the control permissions corresponding to the user mode identifier; wherein, the control permissions corresponding to the user mode identifier are used to represent the operation permission range corresponding to the user mode type of the door lock control signal;

[0056] A matching unit, configured to match the door lock control signal with the control permissions corresponding to the user mode identifier;

[0057] An operation execution unit, configured to execute an operation corresponding to the door lock control signal if the door lock control signal is within the control authority corresponding to the user mode identifier.

[0058] In a third aspect, an embodiment of the present application provides an intelligent door lock, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method described in any one of the embodiments in the first aspect is implemented.

[0059] It can be understood that the beneficial effects of the above second aspect to the third aspect can be referred to the relevant descriptions in the first aspect above, and will not be elaborated here. Description of the Drawings

[0060] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0061] Figure 1 It is a schematic flowchart of an intelligent door lock control method provided by an embodiment of the present application;

[0062] Figure 2 It is a schematic flowchart of the implementation based on local control in the intelligent door lock control method provided by an embodiment of the present application;

[0063] Figure 3 It is a schematic flowchart of the implementation based on remote control in the intelligent door lock control method provided by an embodiment of the present application;

[0064] Figure 4 It is a schematic flowchart of the implementation of step S500 in the intelligent door lock control method provided by an embodiment of the present application;

[0065] Figure 5 It is a schematic structural diagram of an intelligent door lock control device provided by an embodiment of the present application;

[0066] Figure 6 It is a schematic structural diagram of an intelligent door lock provided by an embodiment of the present application. Detailed Embodiments

[0067] In the following description, for purposes of illustration and not limitation, specific details such as particular system architectures, technologies, etc. are set forth in order to provide a thorough understanding of embodiments of the present application. However, those skilled in the art should appreciate that the present application may be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary details.

[0068] It should be understood that when used in the specification and claims of the present application, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or their groups.

[0069] It should also be understood that the term "and / or" as used in the specification and claims of the present application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0070] As used in the specification and claims of the present application, the term "if" may be construed, depending on the context, as "when" or "once" or "in response to determining" or "in response to detecting". Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, as meaning "once determined" or "in response to determining" or "once [the described condition or event] is detected" or "in response to detecting [the described condition or event]".

[0071] In addition, in the description of the specification and claims of the present application, the terms "first", "second", "third", etc. are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance.

[0072] Reference to "one embodiment" or "some embodiments" or the like described in the specification of the present application means that a particular feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of the present application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "comprising", "including", "having", and their variants all mean "including but not limited to", unless otherwise specifically emphasized in another way.

[0073] In the related art, when controlling an intelligent door lock, different users may have different permissions. However, due to the lack of a clear permission control mechanism, the operation permissions of all users when using the intelligent door lock are prone to confusion. For example, a visitor may accidentally attempt to perform an administrator-level operation, or a user may not be correctly identified, resulting in incorrect operation of the door lock. Without reasonable permission differentiation, there may be a situation where an illegal user can perform operations that should not be allowed, or some users cannot use the door lock normally, thus leading to potential security risks.

[0074] To solve the above problems, the embodiments of the present application provide an intelligent door lock control method and an intelligent door lock. In this method, first, a door lock control signal is received, and then based on the door lock control signal, a user mode identifier is determined to facilitate knowing the user mode type corresponding to the door lock control signal. Then, the control permission corresponding to the user mode identifier is determined to facilitate knowing the operation permission range corresponding to the user mode type corresponding to the door lock control signal. And the control permission corresponding to the user mode identifier is matched with the door lock control signal. If the door lock control signal is within the control permission corresponding to the user mode identifier, the operation corresponding to the door lock control signal is executed. This method can achieve more refined permission management by classifying and restricting control permissions based on the user mode identifier, and avoid security problems caused by chaotic operations. This method can not only effectively distinguish and manage the permissions of different users, but also reduce security problems caused by improper permission management, and improve the security and reliability of the door lock system.

[0075] The intelligent door lock control method provided by the embodiments of the present application can be applied to an intelligent door lock. At this time, the intelligent door lock is the execution subject of the intelligent door lock control method provided by the embodiments of the present application. The embodiments of the present application do not impose any restrictions on the specific type of the intelligent door lock.

[0076] Exemplarily, the intelligent door lock may include a voice playback module, an operation execution module, and a control module. The voice playback module is a module capable of playing notification information, and may include a speaker, a voice chip, a microphone, etc.; the operation execution module is a module capable of executing control instructions on the door lock, and may include a motor drive system, a fingerprint recognition module, a password keyboard, etc.; the control module is a module capable of controlling the voice playback module and the operation execution module and performing data processing, and may include a main control board (control circuit board), a microcontroller (MCU) or an embedded processor, a wireless communication module (such as Wi-Fi, Bluetooth, Zigbee, etc.).

[0077] To better understand the intelligent door lock control method provided by the embodiments of the present application, the following provides an exemplary introduction to the specific implementation process of the intelligent door lock control method provided by the embodiments of the present application.

[0078] Figure 1The figure shows a schematic flowchart of the intelligent door lock control method provided by the embodiments of the present application. The intelligent door lock control method includes:

[0079] S100, receiving a door lock control signal. The door lock control signal is used to represent a user's request to perform a certain operation on the door lock.

[0080] It can be understood that the door lock control signal may include an unlocking signal, where the user requests to unlock the door lock; a locking signal, where the user requests to lock the door lock; a query status signal, where the user requests to query the current status of the door lock (such as whether the door lock is locked, the current battery level, the health status of the door lock, etc.); a password reset signal, where the user requests to reset the door lock password; a timed locking / unlocking signal, where the user requests to set the door lock to perform an operation automatically at a specific time (such as automatically locking at night or automatically unlocking in the morning); an authorization / deauthorization signal, where the user requests to authorize or deauthorize certain personnel (such as an administrator setting permissions through a mobile APP or a management system to grant or revoke someone's unlocking permission).

[0081] Exemplarily, through the wireless network of a home or office, the intelligent door lock can receive signals sent through a mobile application, a remote control system, or other networked devices. The user issues a door lock control signal through a mobile phone, a smart home system, or a cloud control platform, and the signal is transmitted to the intelligent door lock through the Internet or local Wi-Fi.

[0082] The Zigbee / Z-Wave wireless protocol is commonly used for communication between smart home devices, and the intelligent door lock can also receive control signals through the wireless protocol. Through the wireless protocol, the door lock can be integrated with other devices in the home automation system, facilitating unified management and control across devices.

[0083] The intelligent door lock can receive control signals from a mobile phone, a Bluetooth card, or other short-range devices through Bluetooth. When the user brings the mobile phone or smart device close to the door lock, the Bluetooth signal activates the door lock and verifies the user's identity.

[0084] Through NFC technology, the user can bring a mobile phone or a dedicated card close to the door lock. After the door lock receives the NFC signal, it verifies the identity and performs unlocking or other operations.

[0085] An intelligent door lock integrated with a voice assistant (such as Amazon Alexa, Google Assistant, etc.) can receive voice commands as door lock control signals. For example, the user sends a control signal through the voice command "Alexa, unlock the door".

[0086] The intelligent door lock can also be equipped with fingerprint recognition, face recognition technology, a physical key card, or a password keypad. When the user sends a control signal through fingerprint or face scanning, or when the user inputs a password or scans the key card, the door lock receives the control signal.

[0087] Through this step, the smart door lock can safely receive the door lock control signal, and different control signals can be implemented in various ways (such as passwords, fingerprints, APPs, Bluetooth, NFC, etc.), which is beneficial to the convenience and security of door lock operations.

[0088] S200. Based on the door lock control signal, determine the user mode identifier. Among them, the user mode identifier is used to determine the user mode type corresponding to the door lock control signal.

[0089] It can be understood that the user mode types can include the administrator mode. Users with all operation permissions can perform operations such as unlocking, locking, setting permissions, adding / deleting users, etc.; the ordinary user mode. Users with limited operation permissions can perform basic unlocking and locking operations and cannot manage other users or modify settings; the visitor mode. Temporarily authorized users may only be able to perform unlocking operations within a specific time, and the permissions are limited.

[0090] The user mode identifier can include the administrator mode identifier, the ordinary user mode identifier, and the visitor mode identifier.

[0091] Exemplarily, the smart door lock can identify the user's identity by comparing biometric features (such as fingerprints, facial recognition, etc.). Based on the user's identity, the system can determine whether the user is an administrator, an ordinary user, a visitor, etc. For example, the fingerprint of an administrator will be associated with the administrator mode, while the fingerprints of family members correspond to the ordinary user mode.

[0092] The smart door lock can identify the user's identity through the password entered by the user. The system can compare the pre-stored password with the password entered by the user to identify the user mode. For example, the administrator may have a unique password or a multi-digit password, while ordinary users may only have a shorter password.

[0093] The smart door lock can determine the user's identity based on the unique identifier of the device (such as the MAC address of the mobile phone or the APP account) and map it to the corresponding user mode.

[0094] The smart door lock can determine which user mode the user belongs to by reading the unique identifier of the card (such as an RFID card or an NFC card). The administrator card and the ordinary card can have different permissions, and the system can determine the user mode according to the card type.

[0095] The user mode identifier can also be used to record operation logs. The system can track the operations performed by each user at different times and the specific operation types (such as unlocking, locking, modifying settings, etc.). Through accurate user mode identification, unauthorized users can be prevented from performing sensitive operations such as modifying system settings or viewing historical records, thereby enhancing the security of the door lock system.

[0096] Through this step, the intelligent door lock identifies the user's identity through the door lock control signal, thereby determining the user mode identifier, which can effectively manage the user's identity, thus enhancing the security and flexibility of the system.

[0097] In a possible implementation, S200, determining the user mode identifier based on the door lock control signal includes:

[0098] S210, extracting the signal type from the door lock control signal. Among them, the signal type includes local control or remote control.

[0099] It can be understood that local control can be that the user directly interacts with the intelligent door lock (operates on the intelligent door lock itself), such as controlling through the touch screen, password input box, card swiping, button triggering, etc. on the door lock.

[0100] Remote control can be that the user uses the remote control platform of intelligent devices (such as mobile phones, smart watches, computers, etc.) (such as the supporting APP of the intelligent door lock, third-party smart home platforms, etc.) to control the intelligent door lock through the Internet or local area network. Through remote control, the user can operate without approaching the door lock.

[0101] Exemplarily, the signal type can be judged by the signal source. If the door lock control signal comes from the intelligent door lock itself, the signal type can be determined as local control, such as touch screen input, NFC card, fingerprint recognition, etc. If the door lock control signal comes from an intelligent device in the Internet or local area network, the signal type can be determined as remote control, such as APP, cloud platform, third-party smart home platform.

[0102] The signal type can also be judged by the signal transmission method. It can be detected whether the door lock control signal is transmitted through a physical connection, a local wireless protocol, or an Internet communication protocol. The signal with the signal type of local control is transmitted through a physical connection (such as a touch screen, fingerprint reader, button, etc.), and the signal will not pass through the Internet or an external network. It mainly occurs between the door lock and local devices. The signal may communicate with the door lock through Bluetooth (short-range wireless), but does not involve a wide area network (such as Wi-Fi or cellular network). The signal with the signal type of remote control is transmitted through the Internet or Wi-Fi, controlled by an external intelligent device (such as a mobile phone, tablet, etc.) or through a cloud platform. The signal is remotely sent through the network and received by the door lock, and may involve multiple network nodes (such as cloud platforms, API calls, etc.). Some remote control signals can also be transmitted through text messages, APP push notifications, etc.

[0103] The signal type can be determined by the identifier carried in the signal. The local control signal does not contain information transmitted by the external network and only includes the ID of the local device and the data input by the user (such as password, fingerprint, NFC information, etc.). The remote control signal can contain information of the remote device, such as the device ID, the user identifier of the cloud platform, the API interface request, etc.

[0104] Through this step, the intelligent door lock can accurately determine the signal type of the door lock control signal according to the signal source, transmission method, and carried identifier, and then adopt different processing methods according to the signal type, which is beneficial to the security and correctness of the operation.

[0105] S220. When the signal type is local control, obtain the first input information and determine the user mode identifier based on the first input information. Among them, the first input information is the information input by the user through the intelligent door lock.

[0106] It can be understood that the first input information can be the information input by the user through the intelligent door lock, which can be the input for verifying the user's identity or for control, such as password, fingerprint, NFC card, Bluetooth signal, touch screen input, etc.

[0107] Exemplarily, the information input by the user (the first input information) can be obtained through the intelligent door lock. For example, the password input by the user; the biometric information obtained through the fingerprint recognition module or the face recognition module; the identification information received through the NFC or Bluetooth device.

[0108] The user identity can be confirmed by comparing the pre-registered password, fingerprint, or face information with the first input information, so as to determine the user mode identifier. If the first input information matches the pre-registered information successfully, the user mode type and the user mode identifier corresponding to the user mode type can be identified according to the user identity, such as the administrator mode, the ordinary user mode, or the visitor mode.

[0109] If the user uses an NFC card or a Bluetooth device, the user identity can be determined through the unique identifier of the device, and the corresponding user mode type and the user mode identifier corresponding to the user mode type can be matched according to the identifier.

[0110] Optionally, please refer to Figure 2 In step S220, determining the user mode identifier based on the first input information includes:

[0111] S221. Based on the input type of the first input information, extract the data table corresponding to the input type from the door lock database. Among them, the door lock database is the local database of the intelligent door lock.

[0112] It can be understood that the input type of the first input information can be the form or type of the first input information, and the input type can include password, the password string entered by the user; fingerprint, the information input through the fingerprint sensor, NFC, the identification information transmitted through the NFC card or device, Bluetooth, the signal transmitted through the Bluetooth device.

[0113] The door lock database can be the local database of the smart door lock, which stores the identity information, permission data and other relevant settings of different users. The door lock database can be the internal storage of the smart door lock.

[0114] The data table can be a structured table in the door lock database, which is used to store the user information corresponding to different input types. For example, password data table, fingerprint data table, NFC card data table, etc.

[0115] Exemplarily, the type of the first input information can be analyzed. For example, if the first input information is a password, the data table related to the password (such as password_table) can be searched in the door lock database; if the first input information is a fingerprint, the data table related to the fingerprint data (such as fingerprint_table) can be searched in the door lock database; if the first input information is an NFC card, the data table related to the NFC device ID (such as nfc_table) can be searched in the door lock database; if the first input information is a Bluetooth device ID, the data table related to the Bluetooth device (such as bluetooth_table) can be searched in the door lock database.

[0116] By querying the door lock database, the table data matching the input type can be extracted. The data table can include a password table (password_table), which contains the user ID and the hash value of the password; a fingerprint table (fingerprint_table), which contains the user ID and the fingerprint template; an NFC table (nfc_table), which contains the ID of the NFC card and the corresponding user information; a Bluetooth table (bluetooth_table), which contains the Bluetooth device ID of the user and the relevant user information.

[0117] S222, match the first input information with the data table.

[0118] Exemplarily, if the first input information is a password, the input password can be compared with the password hash value in the password table. If the first input information (the input password) exists in the password table, the matching is successful. If the first input information is a fingerprint, the scanned fingerprint can be compared with the fingerprint template in the fingerprint table. If the first input information (the scanned fingerprint) exists in the fingerprint table, the matching is successful. If the first input information is an NFC card, the ID of the NFC card can be matched with the information in the NFC table. If the first input information (the ID of the NFC card) exists in the NFC table, the matching is successful. If the first input information is a Bluetooth device, the Bluetooth device ID can be compared with the records in the Bluetooth table. If the first input information (the Bluetooth device ID) exists in the Bluetooth table, the matching is successful.

[0119] S223, when it is determined that the first input information matches the data table successfully, query the user mode identifier corresponding to the first input information from the data table.

[0120] Exemplarily, in addition to the information pre-recorded by the user (such as fingerprints, passwords, etc.) and the user ID in each type of data table, it also includes the user mode identifier corresponding to each user. For example, the structure of the password table is as shown in the following table:

[0121]

[0122] Table 1

[0123] After the first input information matches the data table successfully, the user mode identifier corresponding to the first input information can be found from the data table, and the user mode identifier is returned as the basis for subsequent operations (such as performing unlocking, locking, modifying settings, etc.). For example, if the password hash value input by the user matches hash1, the system will return the Mode1 identifier (administrator mode), indicating that the user is an administrator.

[0124] Through the above steps, it is beneficial to effectively verify the user's identity, match the corresponding user mode identifier based on the identity information, and provide a basis for whether the user has the permission to perform relevant operations subsequently.

[0125] S230, when the signal type is remote control, obtain the user's identity information from the user's client, and determine the user mode identifier based on the user's identity information. Wherein, the client is an intelligent door lock remote control system.

[0126] Exemplarily, the smart door lock can establish communication with a user terminal (such as a mobile phone APP). When the user identity is verified successfully on the user terminal, an encrypted communication channel (such as HTTPS, TLS, etc.) can be used to transmit the user identity information to the smart door lock. The methods for identity verification can include: the user can input the username and password through the APP for identity verification; the user identity can be further verified by sending verification codes, text messages, emails, etc. through the APP; if the user terminal device (such as a mobile phone) supports biometric functions, the user identity can be verified by fingerprint or facial recognition. The user's identity information can include: a user ID, which is the account information that uniquely identifies the user and can be generated when the user registers; identity verification credentials, such as API keys, authentication tokens, or password hash values; and a device identifier, which identifies the device (such as a mobile phone, smartwatch, etc.) that requests the operation.

[0127] The database of the door lock or the cloud platform can be queried to match the received user identity information (such as user ID, verification token, device identifier, etc.) with the pre-recorded user identity information containing the user mode to determine the user mode identifier of the user.

[0128] Through these steps above, the smart door lock can distinguish different sources of control signals (local or remote), and accurately determine the user mode identifier based on the corresponding input information or identity information, and then perform operations that conform to the user's permissions. This not only improves the security of the system but also enhances the flexibility of the user experience.

[0129] Optionally, please refer to Figure 3 , in step S230, obtain the user's identity information from the user's user terminal, including:

[0130] S231, send a user verification signal to the user terminal. The user verification signal is used to trigger the user terminal to verify the user's identity.

[0131] It can be understood that the user verification signal is used to inform the user terminal to perform identity verification now and start the identity verification process.

[0132] Exemplarily, send the user verification signal to the user terminal. After receiving the user verification signal, the user terminal starts the identity verification process.

[0133] S232, receive the user's identity information sent by the user terminal. The user's identity information is sent by the user terminal when it determines that the user verification information matches the pre-recorded information corresponding to the user's login information. The user verification information is obtained by the user terminal based on the user verification signal, and the pre-recorded information corresponding to the user's login information is obtained by the user terminal from the cloud database based on the user's login information. The user's login information is used to represent the account information used by the user to log in to the user terminal.

[0134] Exemplarily, after receiving the verification signal, the user terminal may prompt the user to enter verification information (user verification information), and the user may select the type of verification information (such as password, fingerprint, etc.). The user verification information may include: password, password entered by the user; fingerprint, fingerprint information entered through fingerprint recognition; facial recognition, facial information entered through facial recognition technology; other biometric features or multi-factor authentication, such as SMS verification code, dynamic token, etc. The user terminal prepares the verification information entered by the user for subsequent matching and verification.

[0135] The user end can query all relevant information associated with the account from the cloud database based on the account used by the user to log in to the user end (such as mobile APP, Web end, etc.), such as the pre-recorded information provided by the user when registering (such as password, fingerprint template, facial features, etc.); user-related permissions and configurations (such as administrator, ordinary user, visitor, etc.).

[0136] The client matches the verification information entered by the user with the pre-recorded information of the account stored in the cloud database. For example, the password entered by the user is compared with the pre-recorded password of the account; the verification information obtained by the client through biometrics (such as fingerprints, facial recognition) is compared with the user biometric template stored in the account. If the user verification information completely matches the pre-recorded information, it means that the user identity verification is successful; if the match fails, the client will reject the user's operation request and may prompt the user to re-enter or provide other verification methods.

[0137] When the user successfully authenticates the identity, the user sends the user identity information to the smart door lock. After receiving the identity information, the smart door lock can determine whether the user has the authority to perform the requested operation based on the identity information. The identity information may include the user ID, which uniquely identifies the user; user roles, such as administrator, ordinary user, visitor, etc.

[0138] Through the above steps, only authenticated users can operate the door lock, which improves security and provides users with a convenient remote control experience.

[0139] S300, determining the control authority corresponding to the user mode identifier, wherein the control authority corresponding to the user mode identifier is used to represent the operation authority range corresponding to the user mode type corresponding to the door lock control signal.

[0140] It can be understood that the scope of permissions of the administrator mode may include unlocking, locking, user management (the ability to add, delete, and modify the permissions of other users, such as setting unlocking passwords, fingerprints, Bluetooth, etc. for other users), system settings (the system settings of the door lock can be changed, such as changing the password, modifying the time, configuring automation rules, etc.), and viewing logs (the door lock operation logs and activity records can be viewed).

[0141] The permission scope of ordinary users may include unlocking, locking, and viewing the door lock status, and they cannot change the door lock settings or manage other users. The permission scope of the visitor mode may include unlocking within a specific time period, and the visitor permission will automatically expire after the expiration, and no other operations can be performed.

[0142] Exemplarily, a set of predefined permission rules can be set for each user mode identifier in the system. The permission rules can be stored in the database of the door lock or the cloud platform, and the permission scope corresponding to the user mode identifier can be directly queried from the database of the door lock or the cloud platform.

[0143] In a possible implementation, please refer to Figure 2 and Figure 3 S300, determine the control permission corresponding to the user mode identifier, including:

[0144] S310, extract the control permission mapping table from the door lock database. Among them, the control permission mapping table includes the operation permission scope corresponding to each user mode type corresponding to the user mode identifier.

[0145] It can be understood that the control permission mapping table is a data table used in the intelligent door lock system to manage the operation permission scope corresponding to different user modes (such as administrator, ordinary user, visitor, etc.). The user mode type and the operation permission scope of the user mode corresponding to each user mode identifier are mapped in the control permission mapping table. The content structure of the control permission mapping table can be shown in the following table:

[0146]

[0147] Table 2

[0148] Exemplarily, the control permission mapping table can be obtained through the query interface (such as SQL query) of the door lock database.

[0149] S320, query the control permission corresponding to the user mode identifier from the control permission mapping table.

[0150] Exemplarily, the user mode identifier can be used to query in the control permission mapping table, and the operation permission scope corresponding to the user mode identifier can be obtained from the control permission mapping table.

[0151] Through the above steps, the operation permissions of different users can be flexibly managed, which is beneficial for only users who meet the permissions to perform specific door lock operations, thereby improving security and controllability.

[0152] S400, match the control permission corresponding to the user mode identifier with the door lock control signal.

[0153] Exemplarily, the received door lock control signal can be matched with the permission range corresponding to the user mode to determine whether the operation in the door lock control signal is within the corresponding permission range.

[0154] Through this step, it can be determined whether the operation requested by the user is within the permission range, which can provide security guarantee for whether the operation requested by the user can be executed subsequently.

[0155] S500, if the door lock control signal is within the control permission corresponding to the user mode identifier, execute the operation corresponding to the door lock control signal.

[0156] Exemplarily, when the operation request in the door lock control signal is within the permission range corresponding to the user mode identifier, the system can execute the operation corresponding to the door lock control signal. For example, if the door lock control signal is a user's request to unlock, the system will drive the lock body drive module to unlock the door lock to complete the unlocking operation, the electronic lock core of the door lock is activated, and the door lock is released; if the door lock control signal is a user's request to lock, the system will drive the lock core to lock the door lock to keep the door closed; if the door lock control signal is a user's request for setting changes (such as modifying the password, permission setting, etc.), the system will perform the change operation according to the user's permission and save the new configuration; if the door lock control signal is a user's request to query the door lock status, the system will return the current door lock status information (such as whether the door is locked, remaining battery power, status of the door lock, etc.).

[0157] After the operation is completed, the system can feedback the execution result to the user, which is beneficial for the user to know whether the operation is successful. For example, if the operation is successful, the system can send a success signal or feedback information to prompt the user that the operation has been completed (such as unlocking success, locking success, etc.); if the operation fails for some reason (such as permission mismatch, door lock failure, etc.), the system can provide an error feedback to prompt the user that the operation is not successful.

[0158] Suppose a visitor user sends an unlocking signal. The system can confirm the user mode as the visitor mode according to the visitor's identity and query the corresponding permission range according to the visitor mode identifier. The permissions of the visitor mode are temporary and time-limited, and may only allow unlocking within a specific time period. Therefore, the system can check whether the current time meets the conditions of the visitor's permissions. If the time limit is met, the system unlocks the door lock and returns a success message; if the time limit is not met, the system rejects the unlocking request and returns an error message.

[0159] Through this step, only authorized users can execute the corresponding operations, thereby improving the security and intelligence level of the system.

[0160] In a possible implementation, please refer to Figure 4 , in step S500, executing the operation corresponding to the door lock control signal includes:

[0161] S510, identifying the operation category corresponding to the door lock control signal, wherein the operation category includes basic operation or dynamic operation.

[0162] It can be understood that basic operations are fixed, predefined operations, which may include unlocking, locking, querying door lock status, and modifying settings (such as password modification, user rights management). Dynamic operations are operations driven by external conditions, user needs, or real-time environmental changes, which may include authorization of temporary permissions (such as visitor permissions), automatic unlocking within time limits (such as setting time periods), automatic release of locks (such as automatic unlocking based on sensors or time), and dynamic adjustment of permissions (such as adjusting user permissions based on specific conditions or remote instructions).

[0163] Exemplarily, the operation category corresponding to the door lock control signal may be determined based on the content of the user request in the door lock control signal.

[0164] S520, when the operation category corresponding to the door lock control signal is identified as a basic operation, the basic control instruction corresponding to the door lock control signal is obtained from the control instruction set of the door lock database; according to the basic control instruction corresponding to the door lock control signal, the execution module corresponding to the basic control instruction is controlled to execute the operation corresponding to the door lock control signal.

[0165] Exemplarily, the operation category can be determined by parsing the received door lock control signal to determine whether it belongs to a basic operation. When the operation category is determined to be a basic operation, the basic control instruction corresponding to the operation requested by the user (door lock control signal) can be searched from the control instruction set of the door lock database. For example, if the door lock control signal is an unlocking operation, the unlocking instruction is extracted from the control instruction set. Based on the extracted basic control instruction, the corresponding execution module (such as the lock body drive module and the sensor module) is called to perform the operation. For example, if the operation requested by the user in the door lock control signal is unlocking, the operation category is identified as a basic operation, the unlocking instruction is searched from the control instruction set of the door lock database, and the lock body drive module is controlled to perform the unlocking operation according to the unlocking instruction.

[0166] S530, when it is identified that the operation category corresponding to the door lock control signal is a dynamic operation, the instruction generation logic is called, and based on the instruction generation logic and the door lock control signal, a dynamic control instruction corresponding to the door lock control signal is generated; according to the dynamic control instruction corresponding to the door lock control signal, the execution module corresponding to the dynamic control instruction is controlled to execute the operation corresponding to the door lock control signal.

[0167] It can be understood that the instruction generation logic is a process of dynamically generating control instructions based on the characteristics of the door lock control signal (such as user identity, control conditions, etc.). The instruction generation logic can generate a dynamic control instruction adapted to the current situation according to the dynamic information contained in the door lock control signal. The dynamic information can include user operation requests, such as temporary unlocking, automatic unlocking within a certain period of time, etc.; time limits, such as visitors are only allowed to unlock within a certain period of time; user identity, different users (such as administrators, visitors) may have different permissions and generate different control instructions; additional conditions, such as permission changes, emergency access, environmental changes, etc.

[0168] Exemplarily, when it is recognized that the operation category is a dynamic operation, after parsing the dynamic information from the door lock control signal, the internal instruction generation logic can be invoked. The instruction generation logic generates a specific dynamic control instruction according to the parsed dynamic information. The content of the dynamic control instruction can include the instruction type (such as temporary unlocking instruction, temporary authorization instruction, etc.); the validity period or time range. If the dynamic information contains a time limit, the instruction can include a specific time range or validity period (such as visitors only have access rights within the specified time period); permission information. If the dynamic information involves a change in user permissions (such as temporary authorization), the instruction can include information related to the change in user permissions; operation conditions. The operation is only executed under certain special conditions (such as successful remote verification, the environment meets specific conditions, etc.). For example, the content of the dynamic information is: the user request is for temporary unlocking, the user identity is a visitor, the time limit is from 10:00 AM to 12:00 PM on December 25, 2024, and the additional condition is that unlocking is only allowed within the above time period. The instruction generation logic is invoked to generate a dynamic control instruction based on this dynamic information. The content of this dynamic control instruction is that the instruction type is a temporary unlocking instruction, the validity period is from 10:00 AM to 12:00 PM on December 25, 2024, the user identity is a visitor, and the permission information is that the visitor is temporarily granted the unlocking permission (only within the specified time period).

[0169] The generated dynamic control instruction is passed to the execution module of the intelligent door lock. The execution module controls the specific hardware or functional module to perform the corresponding operation according to the instruction content. For example, if the instruction requires unlocking or locking, the lock body drive module will control the lock body of the door lock to unlock or lock; if the instruction involves temporary granting or adjustment of permissions, the permission management module will update the user's permissions to make the instruction effective; if the instruction involves a time limit, the time control module will check whether the current time meets the conditions, so that the instruction can only be executed within a specific time range.

[0170] Through the above steps, it is possible to distinguish the operation category and flexibly generate control instructions, which is beneficial for the intelligent door lock to provide more personalized and intelligent services according to different user needs and environmental conditions.

[0171] In a possible implementation, the intelligent door lock control method further includes:

[0172] S501, determining the user identification of the user based on the first input information or extracting the user identification from the user's identity information.

[0173] Exemplarily, the user identification of the user can be found from the data table corresponding to the first input information according to the first input information. For example, if the first input information is a password and the input password hash value matches hash1, then the user ID (user identification) of the user can be queried in the password table (Table 1 in step S223) as ID1.

[0174] It can be learned through step S232 that the user identification (user ID) is included in the user's identity information.

[0175] S502, determining whether the user has specific permissions based on the user identification.

[0176] It can be understood that the specific permissions can be permissions that are not within the scope of the operation permissions corresponding to the user mode identification corresponding to the user, and the specific permissions can be permissions lower than the scope of the operation permissions corresponding to the user mode identification corresponding to the user.

[0177] Exemplarily, when the permissions of a certain user change, that is, they are not consistent with the scope of the operation permissions corresponding to the user mode identification corresponding to the user, a label indicating the existence of specific permissions can be added to the user identification of the user. For example, the initial user ID of the user is ID1, and after the permission change, a label indicating the existence of specific permissions is added to the user identification of the user. After adding the label, the user ID of the user can be ID1*. Then, it can be known whether the user has specific permissions after obtaining the user identification.

[0178] S503, when the user has specific permissions, determining the final permissions of the user according to the specific permissions and the control permissions corresponding to the user mode identification.

[0179] Exemplarily, when it is determined that there is a specific permission label on the user identification of the user, that is, the user has specific permissions, the specific permissions corresponding to the user identification can be found from the door lock database, and the specific permissions corresponding to the user identification are compared with the scope of the operation permissions (control permissions) corresponding to the user mode identification. If the specific permissions corresponding to the user identification are not within the scope of the operation permissions (control permissions) corresponding to the user mode identification, the specific permissions and the control permissions corresponding to the user mode identification are determined as the final permissions of the user; if the specific permissions corresponding to the user identification are within the scope of the operation permissions (control permissions) corresponding to the user mode identification, the specific permissions are determined as the final permissions of the user.

[0180] For example, the user identification of a certain user is ID2*, the user mode identification of this user is Mode2, the operation permission range of Mode2 is unlocking and locking, and the specific permission of ID2* is password modification. Then, the specific permission of ID2* does not belong to the operation permission range of Mode2, and unlocking, locking, and password modification are determined as the final permissions of this user. For another example, the user identification of a certain user is ID3*, the user mode identification of this user is Mode2, the operation permission range of Mode2 is unlocking and locking, and the specific permission of ID3* is unlocking. Then, the specific permission of ID3* is lower than the operation permission range of Mode2, and unlocking is determined as the final permission of this user.

[0181] S504. Match the door lock control signal with the user's final permissions.

[0182] Exemplarily, the door lock control signal can be matched with the user's final permissions, and it can be determined whether the operation request in the door lock control signal is within the corresponding permission range.

[0183] S505. If the door lock control signal is within the user's final permissions, perform the operation corresponding to the door lock control signal.

[0184] Exemplarily, when the operation request in the door lock control signal is within the user's final permissions, perform the operation corresponding to the door lock control signal. The execution process has been discussed in detail in steps S510 - S530 and will not be elaborated here.

[0185] Through the above steps, multi - level user permissions are effectively processed, which is beneficial to the flexibility and security of the intelligent door lock system. When a user has specific permissions, they can perform certain operations outside the regular permission range, and at the same time, they will be rejected by the system when they do not have the permissions to perform unauthorized operations. This helps manage complex user and permission relationships in practical applications, prevent abuse of permissions, and is beneficial to the security of the system.

[0186] In a possible implementation manner, the intelligent door lock control method further includes:

[0187] S10. Receive a permission modification request and obtain second input information based on the permission modification request. Here, the second input information is used to verify the administrator's identity.

[0188] Exemplarily, the administrator can input a permission modification request through the interaction interface of the intelligent door lock. For example, the administrator can select the permission modification option through the touch screen on the intelligent door lock, or can select the number representing permission modification through the keyboard on the intelligent door lock. The method of obtaining the second input information is the same as the method of obtaining the first input information.

[0189] Extract a data table corresponding to the input type of the second input information from the door lock database, and query in the data table corresponding to the input type of the second input information whether there is the second input information and the user mode identifier corresponding to the second input information. When the second input information exists in the data table corresponding to the input type of the second input information and the user mode type corresponding to the user mode identifier corresponding to the second input information is the administrator mode, confirm that the user identity is an administrator, that is, the verification of the second input information is successful.

[0190] S20. After the verification of the second input information is successful, obtain the target user identifier and the modified permissions for the target user. Among them, the target user identifier is used to represent the user identifier corresponding to the target user for whom the permissions are modified.

[0191] Exemplarily, after the verification of the second input information is successful, the administrator can directly input the user ID of the target user through the interaction interface on the smart door lock, or can select the user ID of the target user from the existing user list on the interaction interface. After determining the identifier of the target user, the administrator can, through the permission modification interface, input or select the new permissions for the target user. For example, the administrator may add temporary administrator permissions to the target user ID1 or restrict certain operation permissions.

[0192] S30. Obtain the third input information. After the verification of the third input information is successful, determine the user mode identifier corresponding to the target user according to the target user identifier and the control permissions corresponding to the user mode identifier corresponding to the target user. Among them, the third input information is used to verify the administrator's identity, and the second input information and the third input information are input information of different input types.

[0193] Exemplarily, the method for obtaining the third input information is the same as the method for obtaining the first input information. The verification method of the third input information is the same as the verification method of the second input information in step S10. The user mode identifier corresponding to the target user and the range of operation permissions corresponding to the user mode identifier can be queried from the door lock database.

[0194] S40. Determine the specific permissions of the target user according to the modified permissions for the target user and the control permissions corresponding to the user mode identifier corresponding to the target user, and perform a specific permission mark on the target user identifier to obtain the marked target user identifier.

[0195] Exemplarily, if the modified permission for the target user is lower than the operation permission range corresponding to the user mode identifier corresponding to the target user identifier, the modified permission for the target user is determined as the specific permission of the target user, and a specific permission label (specific permission mark) is added to the user identifier of the target user. For example, the user identifier of the target user for whom the permission is modified is ID2, the modified permission range for this target user by the administrator is unlocking, the user mode identifier of this target user is Mode2, and the operation permission range of Mode2 is unlocking and locking. Then, the modified permission range is lower than the operation permission range of Mode2. Unlocking is determined as the specific permission of this target user, and a specific permission label is added to the user identifier ID2 of this target user. After the addition, the user identifier of this target user is ID2*.

[0196] If the modified permission for the target user exceeds the operation permission range corresponding to the user mode identifier corresponding to the target user identifier, the permission that exceeds the operation permission range corresponding to the user mode identifier corresponding to the target user identifier is determined as the specific permission of the target user, and a specific permission label (specific permission mark) is added to the user identifier of the target user. For example, the user identifier of the target user for whom the permission is modified is ID2, the modified permission range for this target user by the administrator is unlocking, locking, and password modification, the user mode identifier of this target user is Mode2, and the operation permission range of Mode2 is unlocking and locking. Then, the modified permission range exceeds the operation permission range of Mode2. The permission that exceeds the operation permission range of Mode2 is password modification. Password modification is determined as the specific permission of this target user, and a specific permission label is added to the user identifier ID2 of this target user. After the addition, the user identifier of this target user is ID2*.

[0197] S50, update the door lock database based on the marked target user identifier and the modified permission for the target user.

[0198] Exemplarily, the system updates the door lock database to save the latest status of the modified permission of the target user and the target user identifier. Through the update of the door lock database, it is beneficial for the permission changes of the target user to be permanently saved. Each time permission verification is performed later, operations can be executed based on the latest user identifier and permission.

[0199] Through the above steps, the permissions of users can be adjusted flexibly and securely, and it is beneficial for permission changes to be recorded and verified in a timely manner.

[0200] In a possible implementation manner, the intelligent door lock control method further includes:

[0201] S601, receive a permission update signal sent by the cloud database.

[0202] It can be understood that the permission update signal is used to notify that the permissions of the smart door lock have changed.

[0203] Exemplarily, when an administrator modifies the permissions of a target user on the user side, after the permission modification operation is completed, the cloud database can be updated according to the modified permissions. After the cloud database is updated, the cloud database sends a permission update signal to the smart door lock.

[0204] S602, Based on the permission update signal, obtain permission update information from the cloud database. Among them, the permission update information includes the marked target user identifier and the modified permissions for the target user.

[0205] Exemplarily, after receiving the permission update signal, a fetch request can be sent to the cloud database. After the cloud database authorizes the fetch request, the permission update information is obtained from the cloud database.

[0206] S603, Update the door lock database based on the permission update information.

[0207] Exemplarily, the corresponding target user record in the door lock database can be found through the marked target user identifier in the permission update information. According to the modified permissions for the target user, the permissions of the target user are updated, that is, the original user identifier of the target user is updated to the marked target user identifier and specific permissions are added for the target user.

[0208] When the permission update is completed, an acknowledgment signal can be generated and returned to the cloud database, which is conducive to the successful application of the permission update. If a permission update conflict occurs (for example, multiple systems attempt to update permissions simultaneously), a version control or conflict resolution mechanism may be enabled to ensure consistency.

[0209] In a possible implementation, the smart door lock control method further includes:

[0210] S101, If the door lock control signal is not within the control permissions corresponding to the user mode identifier, generate a notification message. The notification message is used to inform the user that the operation corresponding to the door lock control signal is not authorized.

[0211] Exemplarily, when the operation requested by the user is not within the operation permission range corresponding to the user mode identifier, a notification message can be generated to inform the user that the requested operation is not authorized. For example, the notification message can be "You do not have permission to perform this operation. Please contact the administrator to obtain permission"; the notification message can be "Operation not authorized. Please check your permission settings".

[0212] S102, When the signal type is local control, send the notification message to the voice playback module of the smart door lock so that the voice playback module plays the notification message.

[0213] Exemplarily, when the signal type is local control, the notification information can be sent to the voice playback module. After receiving the notification information, the voice playback module plays the notification information to inform the user that the current operation is not authorized. The role of the voice playback module is to provide immediate feedback, enabling users who physically interact with the smart door lock to quickly understand the permission issue.

[0214] S103. When the signal type is remote control, the notification information is sent to the user terminal to notify the user that they are not authorized.

[0215] Exemplarily, when the signal type is remote control, the notification information can be sent to the user terminal (such as a mobile phone APP). After receiving the notification information, the user terminal can display the notification information to prompt the user that they do not have the permission to perform this operation. By feeding back the permission issue through the user's remote device, the user can promptly understand why the request was not executed.

[0216] Through the above steps, it is beneficial for users to receive clear feedback in a timely manner when requesting to perform unauthorized operations, avoiding misoperations and improving the security of the system.

[0217] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not imply the order of execution. The execution order of each process should be determined based on its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0218] Corresponding to the smart door lock control method described in the above embodiments, an embodiment of the present application further provides a smart door lock control device, and each unit of the device can implement each step of the smart door lock control method. Figure 5 The block diagram of the smart door lock control device provided by the embodiment of the present application is shown. For the sake of convenience of description, only the parts related to the embodiment of the present application are shown.

[0219] Refer to Figure 5 , the device includes:

[0220] A receiving unit, configured to receive a door lock control signal. Among them, the door lock control signal is used to represent a user's request to perform a certain operation on the door lock.

[0221] An identification determination unit, configured to determine a user mode identifier based on the door lock control signal. Among them, the user mode identifier is used to determine the user mode type corresponding to the door lock control signal.

[0222] A permission determination unit, configured to determine the control permission corresponding to the user mode identifier. Among them, the control permission corresponding to the user mode identifier is used to represent the operation permission range corresponding to the user mode type of the door lock control signal.

[0223] A matching unit, configured to match the door lock control signal with the control authority corresponding to the user mode identifier.

[0224] An operation execution unit, configured to execute the operation corresponding to the door lock control signal if the door lock control signal is within the control authority corresponding to the user mode identifier.

[0225] It should be noted that, for the information interaction, execution process, etc. between the above units, since they are based on the same concept as the method embodiments of the present application, their specific functions and the technical effects brought thereby can be specifically referred to the method embodiment part, and will not be elaborated here.

[0226] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the above division of each functional unit and module is used as an example. In practical applications, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working process of the units and modules in the above device can refer to the corresponding process in the foregoing method embodiments and will not be elaborated here.

[0227] The embodiment of the present application further provides an intelligent door lock. Figure 6 It is a schematic structural diagram of an intelligent door lock provided by an embodiment of the present application. The intelligent door lock includes a voice playback module, an operation execution module, and a control module. As Figure 6 shown, the control module 6 of the intelligent door lock in this embodiment includes: at least one processor 60 ( Figure 6 only one is shown in Figure 6 ), at least one memory 61 (

[0228] only one is shown in ), and a computer program 62 stored in the at least one memory 61 and executable on the at least one processor 60. When the processor 60 executes the computer program 62, the intelligent door lock implements the steps in any of the above method embodiments of the intelligent door lock control method, or the functions of each unit in the above device embodiments.

[0228] Exemplarily, the computer program 62 may be divided into one or more modules / units, which are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of the computer program 62 in the control module 6 of the intelligent door lock.

[0229] The control module 6 of the intelligent door lock may include a main control board (control circuit board), a microcontroller (MCU) or an embedded processor, a wireless communication module (such as Wi-Fi, Bluetooth, Zigbee, etc.), and so on. The intelligent door lock may include, but is not limited to, the processor 60 and the memory 61. Those skilled in the art can understand that Figure 6 merely examples of intelligent door locks are provided, which do not constitute a limitation on intelligent door locks. It may include more or fewer components than shown in the figure, or combine certain components, or have different components. For example, it may also include input / output devices, network access devices, a bus, etc.

[0230] The processor 60 may be a central processing unit (CPU), and the processor 60 may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0231] The memory 61 may be an internal storage unit of the control module 6 of the smart door lock in some embodiments, such as the hard disk or memory of the smart door lock. The memory 61 may also be an external storage device of the smart door lock in other embodiments, such as a plug-in hard disk equipped on the smart door lock, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. Further, the memory 61 may also include both the internal storage unit and the external storage device of the smart door lock. The memory 61 is used to store an operating system, application programs, a BootLoader, data, and other programs, such as the program code of the computer program, etc. The memory 61 may also be used to temporarily store the data that has been output or will be output.

[0232] An embodiment of the present application also provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0233] An embodiment of the present application provides a computer program product, and when the computer program product runs on the smart door lock, the smart door lock implements the steps in any of the above method embodiments.

[0234] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above method embodiments of the present application, a computer program may be used to instruct relevant hardware to complete. The computer program may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps in the above method embodiments may be implemented. Among them, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, an executable file, or some intermediate form, etc. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to the smart door lock, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium may not be an electrical carrier signal and a telecommunication signal.

[0235] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For parts not described or recorded in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

[0236] Those of ordinary skill in the art will appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. A professional technician can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.

[0237] In the embodiments provided in this application, it should be understood that the disclosed intelligent door lock control method, device, and intelligent door lock can be implemented in other ways. For example, the intelligent door lock control device and intelligent door lock embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.

[0238] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0239] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them; although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A smart door lock control method, characterized in that: include: Receiving a door lock control signal; wherein the door lock control signal is used to indicate that a user requests to perform a certain operation on the door lock; Based on the door lock control signal, determining a user mode identifier; wherein the user mode identifier is used to determine the user mode type corresponding to the door lock control signal; Determine the control authority corresponding to the user mode identifier; wherein the control authority corresponding to the user mode identifier is used to represent the operation authority range corresponding to the user mode type corresponding to the door lock control signal; Matching the control authority corresponding to the user mode identifier with the door lock control signal; If the door lock control signal is within the control authority corresponding to the user mode identifier, the operation corresponding to the door lock control signal is executed.

2. The intelligent door lock control method according to claim 1, characterized in that: The determining of the user mode identifier based on the door lock control signal includes: Extracting a signal type from the door lock control signal; wherein the signal type includes local control or remote control; When the signal type is the local control, first input information is obtained, and the user mode identifier is determined based on the first input information; wherein the first input information is information input by the user through the smart door lock; When the signal type is the remote control, the identity information of the user is obtained from the user terminal of the user, and the user mode identifier is determined based on the identity information of the user; wherein the user terminal is a smart door lock remote control system.

3. The intelligent door lock control method according to claim 2, characterized in that: The determining the user mode identifier based on the first input information includes: Based on the input type of the first input information, extracting a data table corresponding to the input type from a door lock database; wherein the door lock database is a local database of the smart door lock; Matching the first input information with the data table; When it is determined that the first input information successfully matches the data table, the user mode identifier corresponding to the first input information is queried from the data table.

4. The intelligent door lock control method according to claim 3, characterized in that: The obtaining the identity information of the user from the user's client includes: Sending a user verification signal to the user terminal; wherein the user verification signal is used to trigger the user terminal to verify the identity of the user; Receive the identity information of the user sent by the user terminal; wherein the identity information of the user is sent by the user terminal when it is determined that the user verification information matches the pre-recorded information corresponding to the user's login information, the user verification information is obtained by the user terminal based on the user verification signal, the pre-recorded information corresponding to the user's login information is obtained by the user terminal from a cloud database based on the user's login information, and the user's login information is used to represent the account information used by the user to log in to the user terminal.

5. The intelligent door lock control method according to claim 3, characterized in that: The determining the control authority corresponding to the user mode identifier includes: Extracting a control authority mapping table from the door lock database; wherein the control authority mapping table includes an operation authority range corresponding to a user mode type corresponding to each user mode identifier; The control authority corresponding to the user mode identifier is queried from the control authority mapping table.

6. The intelligent door lock control method according to claim 3, characterized in that: The executing the operation corresponding to the door lock control signal includes: Identify the operation category corresponding to the door lock control signal; wherein the operation category includes basic operation or dynamic operation; When it is identified that the operation category corresponding to the door lock control signal is the basic operation, a basic control instruction corresponding to the door lock control signal is obtained from a control instruction set of the door lock database; and according to the basic control instruction corresponding to the door lock control signal, an execution module corresponding to the basic control instruction is controlled to execute the operation corresponding to the door lock control signal; When it is identified that the operation category corresponding to the door lock control signal is the dynamic operation, the instruction generation logic is called, and based on the instruction generation logic and the door lock control signal, a dynamic control instruction corresponding to the door lock control signal is generated; according to the dynamic control instruction corresponding to the door lock control signal, the execution module corresponding to the dynamic control instruction is controlled to execute the operation corresponding to the door lock control signal.

7. The intelligent door lock control method according to claim 4, characterized in that: The method further comprises: Determine a user identifier of the user based on the first input information or extract the user identifier from the identity information of the user; Determining whether the user has specific authority based on the user identifier; When the user has a specific permission, determining the final permission of the user according to the specific permission and the control permission corresponding to the user mode identifier; Matching the door lock control signal with the final authority of the user; If the door lock control signal is within the final authority of the user, the operation corresponding to the door lock control signal is executed.

8. The intelligent door lock control method according to claim 7, characterized in that: The method further comprises: Receiving a permission modification request, and acquiring second input information based on the permission modification request; wherein the second input information is used to verify the identity of the administrator; When the second input information is successfully verified, the target user identifier and the modified permissions of the target user are obtained; wherein the target user identifier is used to represent the user identifier corresponding to the target user whose permissions are modified; Acquire third input information, and when the third input information is successfully verified, determine the user mode identifier corresponding to the target user and the control authority corresponding to the user mode identifier corresponding to the target user according to the target user identifier; wherein the third input information is used to verify the identity of the administrator, and the second input information and the third input information are input information of different input types; Determine the specific authority of the target user according to the modified authority of the target user and the control authority corresponding to the user mode identifier corresponding to the target user, and mark the target user identifier with specific authority to obtain a marked target user identifier; The door lock database is updated based on the marked target user identifier and the modified authority of the target user.

9. The intelligent door lock control method according to claim 8, characterized in that: The method further comprises: Receiving a permission update signal sent by the cloud database; Based on the permission update signal, obtaining permission update information from the cloud database; wherein the permission update information includes the marked target user identifier and the modified permission of the target user; The door lock database is updated based on the authority update information.

10. A smart door lock, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 9 is implemented.