Intelligent door lock control method, device, equipment and medium
By generating pairing information between the door lock panel and the driver board and verifying control commands, the security risks of smart door locks being easily disassembled are solved, achieving higher security.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- FOSHAN VIOMI ELECTRICAL TECH
- Filing Date
- 2023-11-15
- Publication Date
- 2026-05-29
AI Technical Summary
Existing smart door locks are easily hacked by disassembling the lock panel, posing a security risk.
By obtaining the identity information of the door lock panel and the drive board, pairing information is generated, control commands are constructed, and the commands are verified based on a preset information database to control the motor inside the door lock, ensuring the binding of the drive board and the panel and preventing the control of the panel from being simulated or replaced.
This effectively reduces security risks caused by disassembly or simulated control commands, thus improving the security of smart door locks.
Smart Images

Figure CN117649712B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart home technology, and in particular to a smart door lock control method, device, equipment and medium. Background Technology
[0002] Smart locks are improved versions of traditional mechanical locks, offering greater intelligence and convenience in terms of user security, identification, and management. They are the locking mechanism in access control systems. Unlike traditional mechanical locks, smart locks are composite locks that combine security, convenience, and advanced technology. They utilize mature technologies such as fingerprint locks and iris recognition access control (biometric, high security, and no risk of loss or damage). Furthermore, smart locks are also part of smart home systems and can be controlled via a client application.
[0003] Currently, smart fully automatic door locks that directly drive the motor can be easily opened by externally inputting high or low control levels when the front panel is disassembled, leaving them with almost no protection. Even if a drive circuit board is used to control the motor, professionals can send control signals via analog communication protocols, causing the drive board to mistakenly believe they are real signals and thus open the door, creating a safety hazard. Summary of the Invention
[0004] In view of this, the present invention provides a smart door lock control method, device, equipment and medium to solve the problem that smart door locks in the prior art are easily cracked by disassembling the door lock panel, thereby bringing security risks.
[0005] To achieve one, some, or all of the above objectives, or other objectives, the present invention proposes an intelligent door lock control method, comprising:
[0006] Obtain the first identity information of the door lock panel and the second identity information of the drive board corresponding to the door lock panel, and generate pairing information based on the first identity information and the second identity information;
[0007] Obtain user request data, and construct control instructions based on the user request data and the pairing information;
[0008] The control command is verified based on a preset information database to obtain the verification result, and the motor inside the door lock is controlled according to the verification result.
[0009] Optionally, the step of obtaining the first identity information of the door lock panel and the second identity information of the drive board corresponding to the door lock panel, and generating pairing information based on the first identity information and the second identity information, includes:
[0010] Obtain historical request information based on the door lock panel;
[0011] Based on the historical request information, determine the set of driver boards that respond to the historical request information, and obtain the second identity information of each driver board to obtain the second identity information set;
[0012] The first identity information is bound to each of the second identity information sets to obtain data pairs of the first identity information and each of the second identity information sets, and the data pairs are used as the pairing information.
[0013] Optionally, the step of constructing control instructions based on the user request data and the pairing information includes:
[0014] Obtain the computing power attribute data of the data processing device inside the door lock;
[0015] Based on the computing power attribute data, an initial encryption method set is determined from the preset encryption method data;
[0016] Obtain the encryption level data of the environment in which the door lock is located;
[0017] The target encryption method is determined based on the encryption level data in the initial encryption method set.
[0018] The user request data and the pairing information are encrypted using the target encryption method to obtain the control command.
[0019] Optionally, before the step of verifying the control command based on a preset information database and obtaining the verification result, the method further includes:
[0020] Obtain the first factory identification information of the door lock panel and the second factory identification information of the drive board corresponding to the door lock panel;
[0021] Generate factory pairing information based on the first factory identification information and the second factory identification information;
[0022] An initial preset information database is constructed based on the factory pairing information;
[0023] Obtain the password update data of the door lock, and generate a preset information database based on the password update data and the initial preset information database.
[0024] Optionally, the step of verifying the control command based on a preset information database and obtaining the verification result includes:
[0025] The target pairing information and target password data in the control command are determined based on the encryption rules of the target encryption method.
[0026] The target pairing information is verified based on the preset information database. If the target pairing information fails verification, the first result in the verification result is generated.
[0027] If the target pairing information is verified, the target password data is verified based on the preset information database; if the target password data is not verified, a second result is generated in the verification result.
[0028] If the target password data passes verification, a third result is generated from the verification results.
[0029] Optionally, the method further includes:
[0030] Obtain the connection status of the driver board and the door lock panel;
[0031] When the connection status is disconnected, image information within a preset range is acquired;
[0032] The feature data of the human image in the image information is identified by image recognition technology, and the permission level of the human image in the image information is determined by a preset identity information database and the feature data.
[0033] If the permission level is greater than or equal to the preset permission level, then obtain the third identity information of the alternative door lock panel when the driver board is connected to the alternative door lock panel, and update the preset information database according to the third identity information;
[0034] If the permission level is lower than the preset permission level, a first alarm message is generated based on the image information.
[0035] Optionally, the step of identifying the feature data of the human image within the image information using image recognition technology includes:
[0036] The disconnection type is determined based on the image information;
[0037] When there is no human image in the image information, the disconnection type is determined to be fault disconnection, the first disconnection time is recorded, and a second alarm message is generated based on the first disconnection time;
[0038] When a human figure is present in the image information, the disconnection type is determined to be a human-caused disconnection, and the feature data of the human figure in the image information are identified using image recognition technology.
[0039] On the other hand, embodiments of this application provide a smart door lock control device, the device comprising:
[0040] The data acquisition module is used to acquire the first identity information of the door lock panel and the second identity information of the drive board corresponding to the door lock panel, and generate pairing information based on the first identity information and the second identity information;
[0041] A generation module is used to acquire user request data and construct control instructions based on the user request data and the pairing information;
[0042] The control module is used to verify the control command based on a preset information database, obtain the verification result, and control the motor inside the door lock according to the verification result.
[0043] On the other hand, embodiments of this application provide an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory through the bus. When the machine-readable instructions are executed by the processor, the steps of the smart door lock control described above are performed.
[0044] On the other hand, embodiments of this application provide a computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, which, when executed by a processor, performs the steps of the smart door lock control method described above.
[0045] Implementing the embodiments of the present invention will have the following beneficial effects:
[0046] By acquiring the first identity information of the door lock panel and the second identity information of the corresponding drive board, and generating pairing information based on the first and second identity information; acquiring user request data and constructing control commands based on the user request data and the pairing information; verifying the control commands based on a preset information database, obtaining verification results, and controlling the motor inside the door lock based on the verification results. By generating pairing information, the drive board and the door lock panel are mutually bound, and control commands are constructed based on the pairing information. If the door lock is disassembled, neither simulating control commands nor replacing the previous door lock panel will be able to control the motor inside the door lock, effectively reducing security risks and improving security. Attached Figure Description
[0047] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0048] in:
[0049] Figure 1 This is an application scenario diagram of an intelligent door lock control method provided in an embodiment of this application;
[0050] Figure 2 This is a scene diagram of human-computer interaction in an intelligent door lock control method provided in an embodiment of this application;
[0051] Figure 3 This is a schematic diagram of the structure of a smart door lock provided in an embodiment of this application;
[0052] Figure 4 This is a flowchart of a smart door lock control method provided in an embodiment of this application;
[0053] Figure 5 This is a schematic diagram of the structure of a smart door lock provided in an embodiment of this application;
[0054] Figure 6 This is a schematic diagram of the structure of an intelligent door lock control device provided in an embodiment of this application;
[0055] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0056] Figure 8 This is a schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of this application. Detailed Implementation
[0057] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0058] like Figure 1 As shown in the figure, this application provides an application scenario for a smart door lock control method, which includes: a smart device 101, a server 102, a gateway 104, a smart door lock 103, and a router 105. The smart device 101 can be any electronic device with control functions, such as a smartphone, desktop computer, laptop computer, tablet computer, or other smart communication device with network connectivity. The server 102 can be a network access server, database server, cloud server, etc.
[0059] For example, gateway 104 can be built based on the standard wireless technology (ZigBee) protocol, and smart cooking device 103 can be a device that is pre-installed in gateway 104. For example, smart door lock 103 can be a device in the kit to which gateway 104 belongs when it leaves the factory; or it can be a device that is subsequently connected to gateway 104 through user operation.
[0060] For example, the smart device 101 is equipped with a client that can manage the smart door lock 103. The client can be an application client (such as mobile phone software) or a web client, which is not limited here. The user interacts with the smart device 101.
[0061] For example, the smart device 101 can be an electronic device with data receiving and data computing functions, that is, an electronic device that can acquire control over the smart door lock 103.
[0062] For example, the smart door lock 103 can establish a network connection with the gateway 104 based on the ZigBee protocol, thereby joining the ZigBee network.
[0063] Both gateway 104 and smart device 101 can connect to router 105 and access the Ethernet network through router 105. Router 105 can connect to the server via wired or wireless communication. For example, gateway 104 and smart device 101 can store the acquired audio information in server 102. Optionally, smart device 101 can also establish a network connection with server 102 via mobile communication technology (2G / 3G / 4G / 5G), wireless communication (WiFi), etc., thereby obtaining data sent by server 102.
[0064] For example, such as Figure 1 The LAN path shown indicates that smart device 101 is in the same LAN as router 105 and gateway 104. The WAN path indicates that smart device 101 is in the same LAN as router 105 and gateway 104. When smart device 101 is in the same LAN as router 105 and gateway 104, smart device 101 can access the LAN via... Figure 1 The local area network path shown interacts with gateway 104 and smart door lock 103 connected to gateway 104; it can also be accessed via, for example... Figure 1 The wide area network path shown interacts with gateway 104 and the smart lock 103 connected to gateway 104. When smart device 101 is not on the same local area network as router 105 and gateway 104, smart device 101 can interact via, as shown in the example... Figure 1 The wide area network path shown interacts with gateway 104 and smart door lock 103 connected to gateway 104.
[0065] In a scenario, such as Figure 2 As shown, the human-computer interaction process is as follows: the smart device 101 acquires control signals (password, fingerprint, etc.) for the smart lock 103 and sends the control signals to the smart lock 103. The smart lock 103 acquires the first identity information of the lock panel and the second identity information of the drive board corresponding to the lock panel, and generates pairing information based on the first identity information and the second identity information; acquires user request data (control signals), and constructs control instructions based on the user request data (control signals) and the pairing information; verifies the control instructions based on a preset information database, obtains the verification result, and controls the motor inside the lock based on the verification result.
[0066] In one scenario, server 102 is used for data interaction between smart device 101 and smart lock 103. Simultaneously, to reduce the computational burden on smart lock 103, smart lock 103 acquires first identity information of the lock panel and second identity information of the corresponding drive board. Smart lock 103 sends the first identity information of the lock panel and the second identity information of the corresponding drive board to server 102. Server 102 generates pairing information based on the first and second identity information; acquires user request data and constructs control commands based on the user request data and the pairing information; verifies the control commands based on a preset information database, obtains verification results, and controls the motor inside the lock based on the verification results.
[0067] In one scenario, the smart device 101 can directly interact with the smart door lock 103, or the smart device 101 can indirectly interact with the smart door lock 103 by forwarding data through the server 102.
[0068] For example, such as Figure 3 As shown, the smart door lock 103 may be equipped with a control module. The control module is used to acquire the first identity information of the door lock panel and the second identity information of the drive board corresponding to the door lock panel, and generate pairing information based on the first identity information and the second identity information; acquire user request data (control signal), and construct control instructions according to the user request data (control signal) and the pairing information; verify the control instructions based on a preset information database, obtain the verification result, and control the motor inside the door lock according to the verification result.
[0069] like Figure 4 As shown in the figure, this application provides a smart door lock control method, including:
[0070] S101. Obtain the first identity information of the door lock panel and the second identity information of the drive board corresponding to the door lock panel, and generate pairing information based on the first identity information and the second identity information;
[0071] For example, the motor control methods used in smart fully automatic door locks mainly include direct drive and drive control via a drive circuit board. Among them, the technology of controlling the motor via a drive circuit board is characterized by maturity, strong adaptability, and wide application. However, both direct drive and drive control via a drive circuit board achieve the control process by responding to the control information of the door lock panel. Therefore, the data security between the door lock panel and the drive circuit board is the key to the security of the door lock. For example, if the front panel of the direct drive motor is disassembled, it can be directly driven by external input of high and low control levels to drive the rotation of the lock body motor and open the door, with almost no protection. Even if the drive circuit board is used to control the drive motor, professionals can send control signals through simulated communication protocols, making the drive board mistaken for real signals, thereby opening the smart door lock.
[0072] For example, by obtaining the first identity information of the door lock panel and the second identity information of the drive board corresponding to the door lock panel, the door lock panel and the drive board are bound (paired) using the first identity information and the second identity information, thereby enabling the drive board to respond to the communication information sent by the corresponding door lock panel. That is, the identity of the door lock panel sending the communication information is verified, avoiding the situation of sending control signals through simulated communication protocols to open the door lock, thus improving security.
[0073] For example, the door lock panel is a data acquisition device for obtaining user fingerprints, facial features, passwords, and other data. It can directly acquire user fingerprints, facial features, passwords, and other data, or it can acquire these data through other devices (e.g., a smart mobile terminal). For instance, the user enters a password on a smart mobile terminal, and the smart mobile terminal sends the password to the door lock panel. The drive board is a controller for the motor inside the door lock, and it is used to control the movement of the motor inside the door lock. The first identity information of the door lock panel and the second identity information of the drive board can be identity encoding information or identity recognition code data.
[0074] S102. Obtain user request data, and construct control instructions based on the user request data and the pairing information;
[0075] For example, while considering the pairing information, the working method of the smart lock should also be considered. That is, the working method of replacing the traditional key with digital password, fingerprint password, or facial password is used to combine the user request information and the pairing information to construct control commands for the smart lock, thereby achieving dual protection (pairing information and password) and ensuring security.
[0076] For example, the user request data includes action information for instructing door lock actions, such as locking action, unlocking action, etc. The user request data also includes a password for granting door lock action permissions, such as a numeric password, fingerprint password, etc.
[0077] S103. Verify the control command based on the preset information database, obtain the verification result, and control the motor inside the door lock according to the verification result.
[0078] For example, the pairing relationship between the door lock panel and the drive board in the control command is verified by a preset information database to avoid the situation where the door lock is opened by sending control signals through a simulated communication protocol. The password data in the control command is verified to determine whether the user who sent the request information has the right to operate the door lock.
[0079] For example, the control command is "Door lock panel A - Driver board A, digital password (111111)". The system searches the preset information database to see if "Door lock panel A - Driver board A" exists. If it does, then "Door lock panel A - Driver board A" is considered to be the correct pairing information. That is, Driver board A can respond to the communication information of door lock panel A. Then, it verifies whether "111111" is the same as the pre-stored password through the preset information database. If they are the same, Driver board A responds to the action information of door lock panel A, such as locking action, unlocking action, etc.
[0080] By acquiring the first identity information of the door lock panel and the second identity information of the corresponding drive board, and generating pairing information based on the first and second identity information; acquiring user request data and constructing control commands based on the user request data and the pairing information; verifying the control commands based on a preset information database, obtaining verification results, and controlling the motor inside the door lock based on the verification results. By generating pairing information, the drive board and the door lock panel are mutually bound, and control commands are constructed based on the pairing information. If the door lock is disassembled, neither simulating control commands nor replacing the previous door lock panel will be able to control the motor inside the door lock, effectively reducing security risks and improving security.
[0081] In one possible implementation, the step of obtaining first identity information of the door lock panel and second identity information of the drive board corresponding to the door lock panel, and generating pairing information based on the first identity information and the second identity information, includes:
[0082] Obtain historical request information based on the door lock panel;
[0083] Based on the historical request information, determine the set of driver boards that respond to the historical request information, and obtain the second identity information of each driver board to obtain the second identity information set;
[0084] The first identity information is bound to each of the second identity information sets to obtain data pairs of the first identity information and each of the second identity information sets, and the data pairs are used as the pairing information.
[0085] For example, in different scenarios, such as Figure 5 As shown, the number of drive boards that can be controlled by the same door lock panel may vary. For example, in certain scenarios, the security requirements of the door lock are high, and two locking devices need to be set up. Each locking device has a drive board (drive board A and drive board B). Moreover, the two locking devices need to be unlocked in sequence. Therefore, to ensure that neither of the two locking devices will be accidentally opened when they are disassembled, it is necessary to bind drive board A and drive board B to the door lock panel respectively, that is, to obtain two pairing information.
[0086] For example, when unlocking (action) is completed through the door lock panel, the set of all drive boards controlled by the door lock panel (drive board A, drive board B) is obtained, and the second identity information of each drive board is obtained to obtain a second identity information set (second identity information A, second identity information B); the first identity information is bound to each second identity information in the second identity information set to obtain a data pair of the first identity information and each second identity information (first identity information - second identity information A, first identity information - second identity information B), and both "first identity information - second identity information A" and "first identity information - second identity information B" are used as the pairing information.
[0087] In one possible implementation, the step of constructing control instructions based on the user request data and the pairing information includes:
[0088] Obtain the computing power attribute data of the data processing device inside the door lock;
[0089] Based on the computing power attribute data, an initial encryption method set is determined from the preset encryption method data;
[0090] Obtain the encryption level data of the environment in which the door lock is located;
[0091] The target encryption method is determined based on the encryption level data in the initial encryption method set.
[0092] The user request data and the pairing information are encrypted using the target encryption method to obtain the control command.
[0093] For example, there are many types of smart locks, and different smart locks use different calculators and data transmission methods. Therefore, the computing power attribute data of different smart locks are different. In order to ensure the normal use of smart locks, an initial encryption method that meets the computing power attribute data of the smart lock is selected.
[0094] For example, while ensuring the normal operation of the smart door lock, the security requirements of the actual scenario should also be considered. For instance, the security requirements of a home scenario are different from those of a commercial material storage scenario. Therefore, a target encryption method that meets the security requirements of the actual scenario should be selected from the initial encryption method set.
[0095] For example, the encryption methods in the preset encryption method data include: SM4 (block data encryption), AES (Advanced Encryption Standard), DES (Data Encryption Standard), MD5 (Message Digest Algorithm), etc.
[0096] An exemplary encryption method includes: receiving raw data and calculating the dimension of an encryption matrix. Additionally, calculating the encryption length, and sequentially extracting data segments of the encryption length from the raw data. Each extracted data segment is then encrypted using the encryption matrix to obtain multiple encrypted segments. This prevents data bloat that could affect the normal operation of the smart lock.
[0097] In one possible implementation, before the step of verifying the control command based on a preset information database and obtaining the verification result, the method further includes:
[0098] Obtain the first factory identification information of the door lock panel and the second factory identification information of the drive board corresponding to the door lock panel;
[0099] Generate factory pairing information based on the first factory identification information and the second factory identification information;
[0100] An initial preset information database is constructed based on the factory pairing information;
[0101] Obtain the password update data of the door lock, and generate a preset information database based on the password update data and the initial preset information database.
[0102] For example, an initial preset information database is constructed based on the factory data (the first factory identification information of the door lock panel and the second factory identification information of the drive board corresponding to the door lock panel) to ensure the accuracy of the initial preset information database.
[0103] For example, since the door lock panel is set to be exposed, the risk and probability of damage to the door lock panel are greater than that of the driver board. When the door lock panel is damaged, a new door lock panel needs to be replaced. At this time, it is necessary to obtain the identity information of the replaced door lock panel, and then update the initial preset information based on the identity information of the replaced door lock panel.
[0104] For example, to reduce the risk of password being cracked, users often change their passwords frequently in daily life. Therefore, by obtaining the password update data of the door lock, the initial preset information database is updated to generate a preset information database, ensuring the normal use of the smart door lock.
[0105] For example, when using fingerprint data as a password, authorized users (authorized fingerprints) are often added. Therefore, it is also necessary to update the initial preset information database by acquiring the newly added fingerprint data to generate a preset information database and ensure the normal use of the smart lock.
[0106] In one possible implementation, the step of verifying the control command based on a preset information database and obtaining a verification result includes:
[0107] The target pairing information and target password data in the control command are determined based on the encryption rules of the target encryption method.
[0108] The target pairing information is verified based on the preset information database. If the target pairing information fails verification, the first result in the verification result is generated.
[0109] If the target pairing information is verified, the target password data is verified based on the preset information database; if the target password data is not verified, a second result is generated in the verification result.
[0110] If the target password data passes verification, a third result is generated from the verification results.
[0111] For example, the control command is decoded according to the encryption rules of the target encryption method to obtain the decoded data, and then the target pairing information and target password data in the control command are determined. For example, when DES (Data Encryption Standard) is used as the target encryption method, the decrypted data is "data A, data B, data C". According to the encryption rules of DES (Data Encryption Standard), "data A" is the target pairing information and "data B" is the target password data.
[0112] For example, the process of verifying the target pairing information is taken as the first verification process, and the result of the first verification is used to determine whether it is necessary to continue verifying the target password data. This can avoid invalid verification of the target password data and reduce the computational pressure. For example, if the target password data is fingerprint data, the fingerprint data comparison process requires obtaining fingerprint feature data and fingerprint feature data comparison. If the target password data process is performed first, there will be a lot of invalid calculation processes, which will waste the computing resources of the data processing device inside the lock.
[0113] In one possible implementation, the method further includes:
[0114] Obtain the connection status of the driver board and the door lock panel;
[0115] When the connection status is disconnected, image information within a preset range is acquired;
[0116] The feature data of the human image in the image information is identified by image recognition technology, and the permission level of the human image in the image information is determined by a preset identity information database and the feature data.
[0117] If the permission level is greater than or equal to the preset permission level, then obtain the third identity information of the alternative door lock panel when the driver board is connected to the alternative door lock panel, and update the preset information database according to the third identity information;
[0118] If the permission level is lower than the preset permission level, a first alarm message is generated based on the image information.
[0119] For example, more and more smart door locks are equipped with image acquisition devices. Therefore, the image acquisition device can acquire image information within a preset range when the connection between the drive board and the door lock panel is disconnected. The preset range can be set as a fixed range in front of the door lock panel.
[0120] For example, the preset identity information database includes preset feature data and the permission levels corresponding to the preset feature data.
[0121] For example, when the permissions of the personnel within the preset range are greater than or equal to the preset permission level, it is considered that the personnel within the preset range can replace the door lock panel. Then, when the driver board is connected to the alternative door lock panel, the third identity information of the alternative door lock panel is obtained, and the preset information database is updated according to the third identity information.
[0122] For example, if the permission level is lower than the preset permission level, the current operation of changing the door lock panel is considered an unreasonable operation, and a first alarm message is generated to promptly notify relevant personnel and ensure security.
[0123] In one possible implementation, the step of identifying feature data of a human image within the image information using image recognition technology includes:
[0124] The disconnection type is determined based on the image information;
[0125] When there is no human image in the image information, the disconnection type is determined to be fault disconnection, the first disconnection time is recorded, and a second alarm message is generated based on the first disconnection time;
[0126] When a human figure is present in the image information, the disconnection type is determined to be a human-caused disconnection, and the feature data of the human figure in the image information are identified using image recognition technology.
[0127] For example, when there is no human image in the image information, it is considered that the connection between the drive board and the door lock panel has failed, the first disconnection time is recorded, and a second alarm message is generated based on the first disconnection time, so that maintenance personnel can repair the door lock in a timely manner and avoid affecting the use of the door lock.
[0128] For example, image recognition technology can be used to identify the feature data of human figures within the image information, which facilitates identification, recovery, and other processing after an accident.
[0129] For example, facial recognition in image recognition technology is a popular research area in computer technology. It belongs to biometric recognition technology, which distinguishes individuals based on their biological characteristics (generally referring to humans). The biological characteristics studied in biometric recognition technology include face, fingerprint, palm print, iris, retina, voice, body shape, and personal habits (such as the force and frequency of keystrokes, signatures), etc. Corresponding recognition technologies include facial recognition, fingerprint recognition, palm print recognition, iris recognition, retinal recognition, voice recognition (voice recognition can be used for identity verification or voice content recognition; only the former belongs to biometric recognition technology), body shape recognition, keystroke recognition, signature recognition, etc.
[0130] One possible implementation, such as Figure 6 As shown in the figure, this application provides an intelligent door lock control device, the device comprising:
[0131] Data acquisition module 201 is used to acquire the health data and habit data of the target user, wherein the habit data includes dietary habit information and daily routine information;
[0132] Analysis module 202 is used to determine intake data for the target user based on the health data;
[0133] The ingredient determination module 203 is used to obtain the target user's food preparation information and the nutritional data of various ingredients in the food preparation information, and generate a menu of ingredients to be recommended based on the intake data and the nutritional data.
[0134] The smart door lock control module 204 is used to generate a menu of recommended dishes based on the menu of recommended ingredients and the habit data, and to complete the smart door lock control based on the menu of recommended dishes.
[0135] By acquiring the first identity information of the door lock panel and the second identity information of the corresponding drive board, and generating pairing information based on the first and second identity information; acquiring user request data and constructing control commands based on the user request data and the pairing information; verifying the control commands based on a preset information database, obtaining verification results, and controlling the motor inside the door lock based on the verification results. By generating pairing information, the drive board and the door lock panel are mutually bound, and control commands are constructed based on the pairing information. If the door lock is disassembled, neither simulating control commands nor replacing the previous door lock panel will be able to control the motor inside the door lock, effectively reducing security risks and improving security.
[0136] One possible implementation, such as Figure 7 As shown, this application embodiment provides an electronic device 300, including: a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, it performs the following: acquiring first identity information of the door lock panel and second identity information of the drive board corresponding to the door lock panel, and generating pairing information based on the first identity information and the second identity information; acquiring user request data, and constructing control instructions based on the user request data and the pairing information; verifying the control instructions based on a preset information database, obtaining a verification result, and controlling the motor inside the door lock based on the verification result.
[0137] By acquiring the first identity information of the door lock panel and the second identity information of the corresponding drive board, and generating pairing information based on the first and second identity information; acquiring user request data and constructing control commands based on the user request data and the pairing information; verifying the control commands based on a preset information database, obtaining verification results, and controlling the motor inside the door lock based on the verification results. By generating pairing information, the drive board and the door lock panel are mutually bound, and control commands are constructed based on the pairing information. If the door lock is disassembled, neither simulating control commands nor replacing the previous door lock panel will be able to control the motor inside the door lock, effectively reducing security risks and improving security.
[0138] In one possible implementation, such as Figure 8 As shown, this application embodiment provides a computer-readable storage medium 400, on which a computer program 411 is stored. When the computer program 411 is executed by a processor, it performs the following: acquiring first identity information of the door lock panel and second identity information of the drive board corresponding to the door lock panel, and generating pairing information based on the first identity information and the second identity information; acquiring user request data, and constructing control instructions based on the user request data and the pairing information; verifying the control instructions based on a preset information database, obtaining a verification result, and controlling the motor inside the door lock based on the verification result.
[0139] By acquiring the first identity information of the door lock panel and the second identity information of the corresponding drive board, and generating pairing information based on the first and second identity information; acquiring user request data and constructing control commands based on the user request data and the pairing information; verifying the control commands based on a preset information database, obtaining verification results, and controlling the motor inside the door lock based on the verification results. By generating pairing information, the drive board and the door lock panel are mutually bound, and control commands are constructed based on the pairing information. If the door lock is disassembled, neither simulating control commands nor replacing the previous door lock panel will be able to control the motor inside the door lock, effectively reducing security risks and improving security.
[0140] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0141] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0142] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, etc., or any suitable combination thereof.
[0143] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. These programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0144] Those skilled in the art will understand that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby allowing them to be stored in a storage device for execution by a computing device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0145] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.
[0146] The above description discloses only preferred embodiments of the present invention and should not be construed as limiting the scope of the present invention. Therefore, equivalent variations made in accordance with the claims of the present invention are still within the scope of the present invention.
Claims
1. A smart door lock control method, characterized in that, include: Obtain the first identity information of the door lock panel and the second identity information of the drive board corresponding to the door lock panel, and generate pairing information based on the first identity information and the second identity information; Obtain user request data, and construct control instructions based on the user request data and the pairing information; The control command is verified based on a preset information database to obtain the verification result, and the motor inside the door lock is controlled according to the verification result. Obtain the connection status of the driver board and the door lock panel; When the connection status is disconnected, image information within a preset range is acquired; The feature data of the human image in the image information is identified by image recognition technology, and the permission level of the human image in the image information is determined by a preset identity information database and the feature data. If the permission level is greater than or equal to the preset permission level, then obtain the third identity information of the alternative door lock panel when the driver board is connected to the alternative door lock panel, and update the preset information database according to the third identity information; If the permission level is lower than the preset permission level, a first alarm message is generated based on the image information.
2. The intelligent door lock control method as described in claim 1, characterized in that, The step of obtaining the first identity information of the door lock panel and the second identity information of the drive board corresponding to the door lock panel, and generating pairing information based on the first identity information and the second identity information, includes: Obtain historical request information based on the door lock panel; Based on the historical request information, determine the set of driver boards that respond to the historical request information, and obtain the second identity information of each driver board to obtain the second identity information set; The first identity information is bound to each of the second identity information sets in the second identity information set to obtain data pairs of the first identity information and each of the second identity information sets, and the data pairs are used as the pairing information.
3. The intelligent door lock control method as described in claim 1, characterized in that, The step of constructing control instructions based on the user request data and the pairing information includes: Obtain the computing power attribute data of the data processing device inside the door lock; Based on the computing power attribute data, an initial encryption method set is determined from the preset encryption method data; Obtain the encryption level data of the environment in which the door lock is located; The target encryption method is determined based on the encryption level data in the initial encryption method set. The user request data and the pairing information are encrypted using the target encryption method to obtain the control command.
4. The intelligent door lock control method as described in claim 1, characterized in that, Before the step of verifying the control command based on a preset information database and obtaining the verification result, the method further includes: Obtain the first factory identification information of the door lock panel and the second factory identification information of the drive board corresponding to the door lock panel; Generate factory pairing information based on the first factory identification information and the second factory identification information; An initial preset information database is constructed based on the factory pairing information; Obtain the password update data of the door lock, and generate a preset information database based on the password update data and the initial preset information database.
5. The intelligent door lock control method as described in claim 3, characterized in that, The step of verifying the control command based on a preset information database and obtaining the verification result includes: The target pairing information and target password data in the control command are determined based on the encryption rules of the target encryption method. The target pairing information is verified based on the preset information database. If the target pairing information fails verification, the first result in the verification result is generated. If the target pairing information is verified, the target password data is verified based on the preset information database; if the target password data is not verified, a second result is generated in the verification result. If the target password data passes verification, a third result is generated from the verification results.
6. The intelligent door lock control method as described in claim 5, characterized in that, The step of identifying the feature data of a human image within the image information using image recognition technology includes: The disconnection type is determined based on the image information; When there is no human image in the image information, the disconnection type is determined to be fault disconnection, the first disconnection time is recorded, and a second alarm message is generated based on the first disconnection time; When a human figure is present in the image information, the disconnection type is determined to be a human-caused disconnection, and the feature data of the human figure in the image information are identified using image recognition technology.
7. An intelligent door lock control device, characterized in that, The device includes: The data acquisition module is used to acquire the first identity information of the door lock panel and the second identity information of the drive board corresponding to the door lock panel, and generate pairing information based on the first identity information and the second identity information; A generation module is used to acquire user request data and construct control instructions based on the user request data and the pairing information; The control module is used to verify the control command based on a preset information database, obtain the verification result, and control the motor inside the door lock according to the verification result; Obtain the connection status of the driver board and the door lock panel; When the connection status is disconnected, image information within a preset range is acquired; The feature data of the human image in the image information is identified by image recognition technology, and the permission level of the human image in the image information is determined by a preset identity information database and the feature data. If the permission level is greater than or equal to the preset permission level, then obtain the third identity information of the alternative door lock panel when the driver board is connected to the alternative door lock panel, and update the preset information database according to the third identity information; If the permission level is lower than the preset permission level, a first alarm message is generated based on the image information.
8. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the steps of the smart door lock control method as described in any one of claims 1 to 6 are performed.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, performs the steps of the smart door lock control method as described in any one of claims 1 to 6.