Intelligent lock anti-theft and early warning method, intelligent lock, electronic equipment and medium
Through the verification of the secret key and random verification code of the smart lock and the secondary lock mechanism, combined with the lock body state detection and cloud connection, the safety problem of the meter box lock when it is damaged or opened abnormally is solved, and the efficient anti-theft of the meter box is achieved. Early warning function.
Patent Information
- Application Number
- CN202310005191.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-04
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2043-01-04
AI Technical Summary
When existing meter box locks are artificially damaged or abnormally opened, it is difficult to detect and prevent theft incidents in a timely manner, affecting power measurement and corporate interests.
Using intelligent lock anti-theft and early warning methods, analyze the secret key and random verification code by receiving unlocking signals. If the verification code is inconsistent or fails to pass, start the secondary lock and send an alarm to remind the maintenance personnel in time, and pass the lock body state detection circuit and Cloud connection ensures the security of the lock.
Effectively prevent the meter box from being turned on illegally, improve the safety and maintenance efficiency of the meter box, promptly remind maintenance personnel to deal with abnormal situations, and reduce power loss and corporate risks.
Smart Images

Figure CN116110153B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of locks, and in particular to a smart lock anti-theft and early warning method, a smart lock, an electronic device and a medium. Background Art
[0002] As necessary equipment for anti-theft in various occasions, locks are constantly updated and upgraded with the development of science and technology. Types of locks include metal key locks, fingerprint locks, password locks, etc., and their anti-theft performance is gradually improved during the update process. The meter box is a device for storing household meters and is also a special box for calculating electricity consumption.
[0003] Some residents want to interfere with the measurement of actual electricity consumption by destroying the equipment in the meter box. Over time, this has caused a large amount of electricity loss and affected the rights and interests of related companies. At present, many areas have matched corresponding maintenance personnel for the meter boxes for daily maintenance. At present, the locks of the meter boxes are basically ordinary locks, and some of the locks of the meter boxes are smart locks. The opening and closing process of these smart locks can be controlled by the background management system. A Bluetooth device is set up in the meter box to collect information on opening and closing the lock. If the lock body has been opened, but not opened through the background management system, the unlocking information can be sent to the background management system for processing. However, in the process of the lock being artificially damaged or abnormally opened, the theft may have occurred when the maintenance personnel discovered it, and it is difficult to ensure the safety of the meter box. Summary of the invention
[0004] The present application provides a smart lock anti-theft and early warning method, a smart lock, an electronic device and a medium.
[0005] In a first aspect, the present application provides a smart lock anti-theft and early warning method, which is applied to a smart lock; the method comprises:
[0006] Receiving an unlocking signal sent by the current operator and analyzing the unlocking signal to determine an unlocking password corresponding to the unlocking signal; the unlocking password includes a secret key corresponding to the current operator and a random verification code;
[0007] Determine whether the secret key is consistent with the preset secret key. If not, turn on the camera to obtain the information of the current operator, and send the information of the current operator and the unlocking information to the maintenance personnel corresponding to the smart lock;
[0008] If they are consistent, verify the random verification code;
[0009] If the random verification code fails to pass the verification, the secondary lock is activated and the unlocking information is sent to the maintenance personnel corresponding to the smart lock, and an alarm is sounded to warn the current operator and surrounding residents.
[0010] It can receive and analyze the unlocking signal of the current operator, obtain the unlocking password corresponding to the unlocking signal, and determine whether the secret key and random verification code contained in the unlocking password are correct. If the secret keys are inconsistent, the information of the current operator is sent to the corresponding maintenance personnel for timely follow-up. If the secret keys are consistent but the random verification code verification fails, it means that the current operator may have cracked the secret key of the password lock, and the risk of theft is high. The secondary lock can be opened and an alarm can be sent to alert the surrounding residents and the current operator. It can remind maintenance personnel to perform maintenance in time, which improves the security of the smart lock.
[0011] Optionally, the smart lock is connected to the cloud through a network; the method further includes:
[0012] Receiving a real-time verification code sent by the cloud;
[0013] If they are consistent, verifying the random verification code includes:
[0014] If they are consistent, the random verification code is matched with the real-time verification code for verification.
[0015] The smart lock can be connected to the cloud. When the secret key is consistent with the preset secret key, the random verification code is verified by receiving the real-time verification code sent by the cloud. The real-time verification code is sent by the cloud and is not pre-set, which provides a basis for the verification of the random verification code. The security of the smart lock is guaranteed.
[0016] Optionally, the receiving the real-time verification code sent by the cloud includes:
[0017] When the unlocking device of the current operator is close to the smart lock, a sensing signal is generated and sent to the cloud;
[0018] Receive a real-time verification code sent by the cloud according to the sensing signal.
[0019] When the current operator's unlocking device is close to the smart lock, a sensing signal is generated and sent to the cloud, triggering the cloud to send a real-time verification code. The security of the real-time verification code triggering is guaranteed. At the same time, the real-time verification code will only be triggered when the current operator tries to open the password lock, reducing the resource usage caused by the transmission of the real-time verification code.
[0020] Optionally, the lock body of the smart lock is connected to a lock body state detection circuit, and the lock body state detection circuit is connected to a lock body control module; when the lock body state is normal, the lock body state detection circuit is closed and sends a normal detection signal to the lock body control module; when the lock body control module receives the normal detection signal, it controls the smart lock to work normally; when the lock body state is abnormal, the lock body state detection circuit sends an abnormal detection signal to the lock body control module, or the lock body state detection circuit is disconnected; when the lock body control module receives the abnormal detection signal, it controls the smart lock to lock; the method also includes:
[0021] Detecting the surface of the smart lock through the lock body status detection circuit;
[0022] When an abnormality occurs on the surface of the smart lock, a corresponding abnormality detection signal is generated and sent to the lock body control module, so that the lock body control module locks the smart lock and starts the secondary lock when the magnitude of the abnormality detection signal exceeds a preset signal threshold;
[0023] receiving a secondary lock unlocking signal sent by the current operator;
[0024] The secondary lock unlocking signal is analyzed. If the secondary lock unlocking password corresponding to the secondary lock unlocking signal is correct, the secondary lock is opened and a restart signal is sent to the lock body control module to restart the smart lock, so that the current operator can open the smart lock normally.
[0025] The lock body of the smart lock is connected to the lock body detection circuit, which is used to detect the state of the lock body and generate a corresponding detection signal. The lock body control module is connected to the lock body detection circuit to receive the detection signal and perform corresponding operations. When an abnormality is detected on the surface of the smart lock and the size of the abnormal detection signal exceeds the preset signal threshold, the lock body detection circuit can be disconnected and the secondary lock can be started. Since the lock body status detection circuit continuously sends a detection signal to the lock body detection module, it will be detected when the current operator attempts to destroy the smart lock. And the current operator can only restart the smart lock and open the meter box after opening the secondary lock. The safety of the meter box is guaranteed.
[0026] Optionally, the determining whether the secret key is consistent with the preset secret key, if not consistent, turning on the camera to obtain current operator information, and sending the current operator information and unlocking information to a maintenance personnel corresponding to the smart lock, includes:
[0027] Determine whether the secret key is consistent with the preset secret key, and if not, turn on the camera to obtain the current operator's information;
[0028] Based on the cloud, determining whether the information of the current operator is included in a preset maintenance database;
[0029] If included, calling the identity information of the current operator in the preset maintenance database, and sending the identity information and unlocking information to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel corresponding to the smart lock can choose whether to open the smart lock;
[0030] If not included, the current operator's information and unlocking information are sent to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel corresponding to the smart lock can perform maintenance in time.
[0031] When the secret key is inconsistent with the preset secret key, it may be that the maintenance personnel corresponding to the smart lock need other maintenance personnel to help with maintenance, or it may be that someone else wants to unlock the lock. It can be determined whether the current operator is a maintenance personnel based on the identity information of the current operator. If so, the maintenance personnel corresponding to the smart lock can choose whether to unlock the lock. This ensures the safety of the meter box while facilitating normal maintenance by maintenance personnel.
[0032] Optionally, the method further includes:
[0033] When the lock body state detection circuit detects a change in the surface of the smart lock, a corresponding self-detection signal is generated according to the change;
[0034] Sending the self-detection signal to the cloud, so that the cloud matches a corresponding response signal according to the self-detection signal;
[0035] The response signal is received and analyzed, a response operation corresponding to the response signal is determined and fed back to the maintenance personnel corresponding to the smart lock.
[0036] The smart lock can perform self-detection based on the changes in the surface and send the corresponding self-detection signal to the cloud, which will match the corresponding response signal. The smart lock performs corresponding operations based on the response signal. The smart lock does not need to store the corresponding response operations for different changes, but only needs to communicate with the cloud when the surface of the smart lock changes. This ensures that different changes can correspond to accurate response operations, thereby improving the safety of the meter box.
[0037] Optionally, the method further includes:
[0038] When the secret key is consistent with the preset secret key and the random verification code is verified, receiving maintenance information detected by the lock body control module;
[0039] generating a maintenance record according to the maintenance information, and sending the maintenance record to the cloud;
[0040] A reminder to be supplemented is generated based on the maintenance information, and the reminder to be supplemented is sent to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel can supplement the maintenance record and perform maintenance in time.
[0041] When the secret key sent by the current operator is consistent with the preset secret key and the random verification code is verified, the maintenance information detected by the lock body control module can be received, and the corresponding maintenance record can be generated and synchronized to the cloud. Then the maintenance record is generated according to the maintenance information and sent to the corresponding maintenance personnel. The cloud can remind the maintenance personnel to perform maintenance in time based on the maintenance record, avoiding the maintenance personnel's failure to follow up maintenance in time due to inadequate reminders.
[0042] In a second aspect, the present application provides a smart lock, comprising:
[0043] An unlocking signal analysis module, used to receive an unlocking signal sent by the current operator and analyze the unlocking signal to determine an unlocking password corresponding to the unlocking signal; the unlocking password includes a secret key corresponding to the current operator and a random verification code;
[0044] A key determination module is used to determine whether the key is consistent with the preset key. If they are inconsistent, the camera is turned on to obtain the information of the current operator, and the information of the current operator and the unlocking information are sent to the maintenance personnel corresponding to the smart lock;
[0045] A random verification code verification module, used to verify the random verification code when they are consistent;
[0046] The secondary lock activation module is used to open the secondary lock and send the unlocking information to the maintenance personnel corresponding to the smart lock when the random verification code fails to be verified, and to sound an alarm to warn the current operator and surrounding residents.
[0047] Optionally, the smart lock is connected to the cloud through a network, and the smart lock further includes a real-time verification code receiving module for:
[0048] Receiving a real-time verification code sent by the cloud;
[0049] The random verification code verification module is specifically used for:
[0050] If they are consistent, the random verification code is matched with the real-time verification code for verification.
[0051] Optionally, the random verification code verification module is specifically used to:
[0052] When the unlocking device of the current operator is close to the smart lock, a sensing signal is generated and sent to the cloud;
[0053] Receive a real-time verification code sent by the cloud according to the sensing signal.
[0054] Optionally, the lock body of the smart lock is connected to a lock body state detection circuit, and the lock body state detection circuit is connected to a lock body control module; when the lock body state is normal, the lock body state detection circuit is closed and sends a normal detection signal to the lock body control module; when the lock body control module receives the normal detection signal, it controls the smart lock to work normally; when the lock body state is abnormal, the lock body state detection circuit sends an abnormal detection signal to the lock body control module, or the lock body state detection circuit is disconnected; when the lock body control module receives the abnormal detection signal, it controls the smart lock to lock; the smart lock also includes a smart lock surface detection module, which is used to:
[0055] Detecting the surface of the smart lock through the lock body status detection circuit;
[0056] When an abnormality occurs on the surface of the smart lock, a corresponding abnormality detection signal is generated and sent to the lock body control module, so that the lock body control module locks the smart lock and starts the secondary lock when the magnitude of the abnormality detection signal exceeds a preset signal threshold;
[0057] receiving a secondary lock unlocking signal sent by the current operator;
[0058] The secondary lock unlocking signal is analyzed. If the secondary lock unlocking password corresponding to the secondary lock unlocking signal is correct, the secondary lock is opened and a restart signal is sent to the lock body control module to restart the smart lock, so that the current operator can open the smart lock normally.
[0059] Optionally, the secret key determination module is specifically used to:
[0060] Determine whether the secret key is consistent with the preset secret key, and if not, turn on the camera to obtain the current operator's information;
[0061] Based on the cloud, determining whether the information of the current operator is included in a preset maintenance database;
[0062] If included, calling the identity information of the current operator in the preset maintenance database, and sending the identity information and unlocking information to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel corresponding to the smart lock can choose whether to open the smart lock;
[0063] If not included, the current operator's information and unlocking information are sent to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel corresponding to the smart lock can perform maintenance in time.
[0064] Optionally, the smart lock further includes a self-detection module, which is used to:
[0065] When the lock body state detection circuit detects a change in the surface of the smart lock, a corresponding self-detection signal is generated according to the change;
[0066] Sending the self-detection signal to the cloud, so that the cloud matches a corresponding response signal according to the self-detection signal;
[0067] The response signal is received and analyzed, a response operation corresponding to the response signal is determined and fed back to the maintenance personnel corresponding to the smart lock.
[0068] Optionally, the smart lock further includes a maintenance record supplement module, which is used to:
[0069] When the secret key is consistent with the preset secret key and the random verification code is verified, receiving maintenance information detected by the lock body control module;
[0070] generating a maintenance record according to the maintenance information, and sending the maintenance record to the cloud;
[0071] A reminder to be supplemented is generated based on the maintenance information, and the reminder to be supplemented is sent to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel can supplement the maintenance record and perform maintenance in time.
[0072] In a third aspect, the present application provides an electronic device, comprising: a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute the method of the first aspect.
[0073] In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program that can be loaded by a processor and execute the method of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0075] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0076] Figure 2 A flowchart of a smart lock anti-theft and early warning method provided in one embodiment of the present application;
[0077] Figure 3A schematic diagram of the structure of a smart lock provided in one embodiment of the present application;
[0078] Figure 4 A schematic diagram of the structure of a data transmission device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0079] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0080] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0081] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.
[0082] With the development of science and technology, the anti-theft requirements for locks in daily life are getting higher and higher. The types of locks currently available include metal key locks, fingerprint locks, password locks, and so on. However, for the locks of the meter box, most of them are still metal key locks, and a small number of meter boxes use smart locks. These meter boxes are equipped with smart locks on the outside and Bluetooth devices on the inside. The opening and closing of the smart lock is controlled by the background management system, and the Bluetooth device is used to collect information on the opening and closing of the smart lock. If someone opens the smart lock in an abnormal way, the information during the opening process cannot be detected by the Bluetooth device. When the smart lock is fully opened, it will be detected and a reminder will be sent to the background management system. At this time, theft usually has occurred, and it is difficult to ensure the safety of the meter box.
[0083] Based on this, the present application provides a smart lock anti-theft and early warning method, a smart lock, an electronic device and a medium.
[0084] Establish a smart lock anti-theft and early warning system, and the smart lock is part of the system. Determine the corresponding unlocking password by analyzing the unlocking signal of the current operator. The unlocking password consists of two parts, one is a fixed secret key and the other is a random verification code. Verify whether the secret key and the random verification code are correct in turn. If the secret key is incorrect, the camera can be immediately turned on to obtain the current operator's information, and the current operator's information and unlocking information can be sent to the maintenance personnel corresponding to the smart lock. If the secret key is correct but the random verification code is incorrect, the secondary lock can be immediately turned on for further protection. In addition to sending the current operator's information and unlocking information to the maintenance personnel corresponding to the smart lock, an alarm can also be issued. Ensure that the current operator is monitored in real time when trying to open the smart lock. If an abnormal unlocking is found, the maintenance personnel corresponding to the smart lock can be synchronized immediately for timely follow-up maintenance to ensure the safety of the meter box as much as possible.
[0085] Figure 1 A schematic diagram of an application scenario provided for this application. Figure 1 In the application scenario shown, a meter box is installed at the entrance of a certain floor, and a smart lock is set outside the meter box. Among them, the smart lock is a device used for the meter box to prevent theft. The unlocking device of the maintenance personnel corresponding to the smart lock can be a mobile phone carrying NFC, and it can also be an NFC card in other scenarios. The smart lock can be composed of a control module and a lock body. The lock body is set on the outside of the meter box, and the control module is set on the inside of the meter box, which can reduce the probability of damage to the control module. A camera is set on the meter box, which can be electrically connected to the smart lock to capture the information of the current operator. The lock body of the smart lock is connected to a lock body state detection circuit, and the lock body state detection circuit is connected to the lock body control module. According to the state of the lock body state monitoring circuit, different signals are sent to the lock body control module to control the opening and closing of the lock body of the smart lock. When the current operator's mobile phone carrying NFC is close to the smart lock, it will be sensed, and the unlocking signal sent by the unlocking device of the current operator will be received for analysis, so as to perform subsequent real-time detection and early warning.
[0086] For specific implementation methods, please refer to the following embodiments.
[0087] Figure 2 This is a flow chart of a smart lock anti-theft and early warning method provided in an embodiment of the present application. The method of this embodiment can be applied to the server in the above scenario. Figure 2 As shown, the method includes:
[0088] S201, receiving an unlocking signal sent by the current operator and analyzing the unlocking signal to determine an unlocking password corresponding to the unlocking signal; the unlocking password includes a secret key corresponding to the current operator and a random verification code.
[0089] The smart lock can be a password lock, fingerprint lock, voiceprint lock, NFC induction lock, etc. The current operator can be the person who wants to open the smart lock at the current moment. The unlocking signal can be the action, sound, signal, etc. sent by the current operator to unlock the smart lock to transmit messages or commands. For example, the pressing action during fingerprint recognition and the sound emitted when the voiceprint is unlocked. When the unlocking signal is a signal sent by NFC, the action of entering a password, etc., the secret key and the random verification code can be two different strings of numbers, which can be used together as the unlocking password. When the unlocking signal is a fingerprint recognition action, the secret key can be a pre-recorded fingerprint, and the random verification code can be a string of random numbers that can be sent to the current operator's mobile device.
[0090] Specifically, when the current operator wants to open the smart lock, there may be some unlocking behavior. This behavior can be sent to the smart lock as an unlocking signal. The smart lock will determine the corresponding unlocking password based on the message transmitted by the unlocking signal.
[0091] Preferably, the smart lock can be an NFC induction lock, and the unlocking signal of the current operator corresponds to the NFC signal. After receiving the NFC signal, the smart lock can convert the signal into data, and this string of data is the unlocking password, which consists of a secret key and a random verification code.
[0092] S202. Determine whether the secret key is consistent with the preset secret key. If not, turn on the camera to obtain the current operator's information, and send the current operator's information and unlocking information to the maintenance personnel corresponding to the smart lock.
[0093] The preset key can be a fixed unlocking password corresponding to the pre-set smart lock. Each smart lock corresponds to its own unique preset key and is maintained by specific maintenance personnel. The preset key can be directly stored in the smart lock after being pre-set, or it can be modified by the corresponding maintenance personnel. The current operator's information may include personal information such as the current operator's body shape, current clothing, and facial information. When the current operator tries to open the smart lock, the smart lock can detect the unlocking process of the current operator in real time and generate unlocking information. The unlocking information may include information such as the time and method of unlocking by the current operator.
[0094] Specifically, after receiving the secret key, the smart lock can compare the secret key with the preset secret key to determine whether the data contained in the secret key and the preset secret key and the order of the data are the same. If they are not the same, it means that the secret key is inconsistent with the preset secret key. At this time, the smart lock can turn on the camera to capture the current operator around the smart lock. After capturing, image recognition is performed to obtain the information of the current operator. Then the current operator's information and the real-time detected unlocking information are sent to the maintenance personnel corresponding to the smart lock.
[0095] In some embodiments, the maintenance personnel corresponding to the smart lock may not be fixed, and the maintenance personnel can be assigned according to actual conditions.
[0096] S203: If they are consistent, verify the random verification code.
[0097] The random verification code can be a string of data with an unfixed sequence of numbers and an unfixed number of numbers, which can be randomly combined at different times. The random verification code can be sent only to the maintenance personnel corresponding to the smart lock.
[0098] Specifically, if the secret key is consistent with the preset secret key, it is determined whether the random verification code exists and whether it is correct. Correspondingly, the verification result may include that the random verification code does not exist, the random verification code exists but is incorrect, and the random verification code exists and is correct.
[0099] S204. If the random verification code fails to be verified, the secondary lock is activated and the unlocking information is sent to the maintenance personnel corresponding to the smart lock, and an alarm is sounded to warn the current operator and surrounding residents.
[0100] According to the result of the verification in S203, the corresponding situation of failure of verification may be that there is no random verification code or that there is a random verification code but it is incorrect. Compared with the smart lock, the secondary lock has a better anti-theft effect. The opening method of the secondary lock can be a combination of any two opening methods such as password, fingerprint, voiceprint, etc. The alarm can be a flashing light, prompt sound, etc. that can serve as a warning signal. The surrounding residents can be residents of the floor where the meter box corresponding to the smart lock is located.
[0101] Specifically, if the result of verifying the random verification code is that there is no random verification code or there is a random verification code but it is incorrect, it means that the random verification code verification fails. At this time, the secondary lock is opened, and the unlocking information is sent to the maintenance personnel corresponding to the smart lock to remind the maintenance personnel to perform maintenance in time. At the same time, an alarm is issued to remind surrounding residents to check, which plays a certain warning role for the current operator.
[0102] This application can receive the unlocking signal of the current operator and analyze it, obtain the unlocking password corresponding to the unlocking signal, and determine whether the secret key and random verification code contained in the unlocking password are correct. If the secret keys are inconsistent, the current operator's information is sent to the corresponding maintenance personnel for timely follow-up. If the secret keys are consistent but the random verification code verification fails, it means that the current operator may have cracked the secret key of the password lock, and the risk of theft is high. The secondary lock can be opened and an alarm can be sent to alert surrounding residents and the current operator. It can remind maintenance personnel in time to perform maintenance, which improves the security of the smart lock.
[0103] In some embodiments, the smart lock and the cloud can be connected to a network, and the above method may specifically include: receiving a real-time verification code sent by the cloud;
[0104] Correspondingly, if they are consistent, then verifying the random verification code, which may specifically include: if they are consistent, matching the random verification code with the real-time verification code for verification.
[0105] The cloud can be a cloud storage platform that can be used to store information related to the smart lock. For example, unlocking information, maintenance personnel information, etc. The real-time verification code can be a string of random verification codes sent by the cloud to the smart lock and the maintenance personnel corresponding to the smart lock when the current operator attempts to open the smart lock. The numbers contained in the real-time verification code and the corresponding number combination may be different at different times. The random verification code sent from the cloud to the smart lock is stored in the smart lock and can be used as the above-mentioned real-time verification code.
[0106] Specifically, when a current operator tries to open the smart lock, the cloud will randomly combine a string of real-time verification codes and send them to the smart lock and the maintenance personnel corresponding to the smart lock, which can be used as the basis for verifying the random verification code in the unlocking password. If the secret key sent by the current operator is consistent with the preset secret key in the smart lock, the random verification code sent by the current operator and the data and data arrangement contained in the real-time verification code sent by the cloud will be matched to complete the verification process.
[0107] In other embodiments, when the current operator is the maintenance personnel corresponding to the smart lock, the random verification code and the real-time verification code are the same.
[0108] The smart lock in this embodiment can be connected to the cloud through a network. When the secret key is consistent with the preset secret key, the random verification code is verified by receiving the real-time verification code sent by the cloud. The real-time verification code is sent by the cloud and is not pre-set, which provides a basis for the verification of the random verification code. The security of the smart lock is guaranteed.
[0109] In some embodiments, the above-mentioned receiving the real-time verification code sent by the cloud may specifically include: when the current operator's unlocking device is close to the smart lock, generating a sensing signal and sending it to the cloud; receiving the real-time verification code sent by the cloud according to the sensing signal.
[0110] The unlocking device of the current operator can be a key, a finger for fingerprint recognition, a device for inputting a password, a mobile phone, an NFC card, etc. The sensing signal can be a corresponding signal generated when the unlocking device is sensed, which can be used as a signal for trying to open the smart lock, or as a signal for triggering the cloud to send a real-time verification code.
[0111] Specifically, when the operator's unlocking device is close to the smart lock, the smart lock senses the unlocking device, establishes communication, generates a corresponding sensing signal and sends it to the cloud. When the cloud receives the sensing signal, it triggers the sending of a real-time verification code, and the smart lock receives the real-time verification code and stores it for subsequent random verification code verification.
[0112] Preferably, the unlocking device of the current operator can be a mobile phone with NFC. When the current operator brings the mobile phone close to the smart lock, the smart lock can sense the signal sent by NFC and establish communication with NFC. At this time, the smart lock generates a sensing signal and sends it to the cloud. The cloud sends a real-time verification code to the smart lock, and the real-time verification code is used to verify the random verification code sent by NFC.
[0113] This embodiment generates a sensing signal and sends it to the cloud when the current operator's unlocking device is close to the smart lock, triggering the cloud to send a real-time verification code. The security of the real-time verification code triggering is guaranteed, and the real-time verification code is only triggered when the current operator attempts to open the password lock, reducing the resource usage caused by the transmission of the real-time verification code.
[0114] In some embodiments, the lock body of the above-mentioned smart lock is connected to a lock body state detection circuit, and the lock body state detection circuit is connected to a lock body control module; when the lock body state is normal, the lock body state detection circuit is closed and sends a normal detection signal to the lock body control module; when the lock body control module receives the normal detection signal, it controls the smart lock to work normally; when the lock body state is abnormal, the lock body state detection circuit sends an abnormal detection signal to the lock body control module, or the lock body state detection circuit is disconnected; when the lock body control module receives the abnormal detection signal, it controls the smart lock to lock; the above-mentioned method may specifically include: detecting the surface of the smart lock through the lock body state detection circuit; when an abnormality occurs on the surface of the smart lock, generating a corresponding abnormal detection signal and sending it to the lock body control module, so that the lock body control module locks the smart lock and starts the secondary lock when the size of the abnormal detection signal exceeds a preset signal threshold; receiving the secondary lock unlocking signal sent by the current operator; analyzing the secondary lock unlocking signal, if the secondary lock unlocking password corresponding to the secondary lock unlocking signal is correct, then opening the secondary lock and sending a restart signal to the lock body control module to restart the smart lock, so that the current operator can open the smart lock normally.
[0115] The lock body can be a structure with a locking function, which may be a single module or a combination of multiple modules. The lock body can be a mechanical structure or an electromagnetic induction structure. The lock body state detection circuit can be connected to the lock body to detect the state of the lock body. The lock body control module is used to control the opening and closing of the smart lock. When the lock body of the smart lock is not touched by anyone and is in a natural state, it can be regarded as a normal lock body state; when it is opened normally, it can also be regarded as a normal lock body state. The normal detection signal can be a stable, low-energy signal that the lock body continuously sends to the lock body control module when the lock body is in a normal state. When the smart lock detects that it has been damaged by human beings, such as cutting, smashing, or the smart lock is directly damaged to a state where it cannot work normally, it can be regarded as an abnormal lock body state. When no one tries to open the smart lock, the change of the detection signal is very small and basically tends to be stable; when the maintenance personnel corresponding to the smart lock open it normally, the detection signal may be a sudden change. When someone maliciously damages the smart lock, the smart lock will not open in an instant, and the detection signal may change unstably. In this way, it can be determined whether the lock body of the smart lock is in a normal state. The abnormal detection signal can be a sudden change signal sent to the lock body control module when the lock body state is abnormal. The preset signal threshold can be a pre-set value that can be used as a safety critical signal of the smart lock. When the size of the abnormal detection signal exceeds the preset signal threshold, it means that the abnormality on the surface of the current smart lock may affect the normal operation of the smart lock and the safety of the meter box. The secondary lock can be set inside the meter box and can only communicate with the cloud or the unlocking device of the maintenance personnel corresponding to the smart lock. When the current operator wants to open the secondary lock, it is necessary to establish communication with the secondary lock, and can send verification information to the maintenance personnel corresponding to the smart lock. When it is determined that the current operator is the maintenance personnel corresponding to the smart lock, the secondary lock can be opened. The secondary lock unlocking signal can be an unlocking signal sent to the secondary lock by the maintenance personnel corresponding to the smart lock.
[0116] Specifically, the surface condition of the smart lock can be detected by the lock body state detection circuit. When no one tries to open the smart lock, the corresponding lock body state is normal, and the lock body state detection circuit is closed, and the smart lock is in a normal closed state. In this state, the lock body sends a normal detection signal to the lock body control module. When the current operator damages the smart lock, the lock body state is abnormal, and the lock body sends an abnormal detection signal to the lock body control module. The lock body control module compares the size of the abnormal detection signal with the preset signal threshold. If the size of the abnormal detection signal exceeds the preset signal threshold, the smart lock is locked and the secondary lock is started. When the current operator tries to open the smart lock, a message prompt can be sent to the maintenance personnel corresponding to the smart lock to remind the maintenance personnel that the secondary lock needs to be opened first. If the current operator is the maintenance personnel corresponding to the smart lock, a secondary lock unlocking signal can be sent to the secondary lock and the secondary lock unlocking password corresponding to the secondary lock unlocking signal can be analyzed. If the secondary lock unlocking password is correct, the secondary lock is opened. Then a restart signal is sent to the lock body control module to restore the smart lock to a normal working state. Then the current operator can reopen the smart lock according to the unlocking process in the above method to open the meter box.
[0117] It should be noted that the smart lock is used to close the meter box to initially ensure the safety of the meter box. Under normal circumstances, the meter box can be opened by opening the smart lock. When the smart lock is damaged by human beings and the size of the abnormal detection signal exceeds the preset signal threshold, the secondary lock is activated. At this time, the secondary lock can be used as the main line of defense. It is necessary to open the secondary lock and restart the smart lock first, and then open the smart lock to open the meter box. Therefore, when the secondary lock is activated, even if the current operator is the maintenance personnel corresponding to the smart lock, he cannot directly open the smart lock without going through the secondary lock.
[0118] In this embodiment, the lock body of the smart lock is connected to the lock body detection circuit, which is used to detect the state of the lock body and generate a corresponding detection signal. The lock body control module is connected to the lock body detection circuit, which is used to receive the detection signal and perform corresponding operations. When an abnormality is detected on the surface of the smart lock and the size of the abnormal detection signal exceeds the preset signal threshold, the lock body detection circuit can be disconnected and the secondary lock can be started. Since the lock body status detection circuit continuously sends a detection signal to the lock body detection module, it will be detected when the current operator attempts to destroy the smart lock. And the current operator can only restart the smart lock and open the meter box after opening the secondary lock. The safety of the meter box is guaranteed.
[0119] In some embodiments, the above-mentioned smart lock is associated with the cloud; the above-mentioned determination of whether the secret key is consistent with the preset secret key, if not, turning on the camera to obtain the current operator information, and sending the current operator information and unlocking information to the maintenance personnel corresponding to the smart lock, may specifically include: determining whether the secret key is consistent with the preset secret key, if not, turning on the camera to obtain the current operator information; based on the cloud, judging whether the current operator's information is included in the preset maintenance database; if included, calling the identity information of the current operator in the preset maintenance database, and sending the identity information and unlocking information to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel corresponding to the smart lock can choose whether to open the smart lock; if not included, sending the current operator's information and unlocking information to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel corresponding to the smart lock can perform maintenance in time.
[0120] A preset maintenance database may be pre-set in the cloud, and the maintenance database may include identity information of maintenance personnel. The identity information may include facial feature information, fingerprint information, contact information, etc. of the maintenance personnel.
[0121] Specifically, determine whether the secret key is consistent with the preset secret key. If not, the camera can be turned on to capture the information of the current operator. The smart lock can be connected to the preset maintenance database in the cloud to compare whether the current operator's information matches the identity information of the maintenance personnel. If they match, it means that the current operator's information is included in the preset maintenance database. The current operator's information in the preset maintenance database is retrieved and sent to the maintenance personnel corresponding to the smart lock, and the maintenance personnel determines whether the current operator can open the smart lock on his behalf this time. If the current operator's information does not match the maintenance personnel's identity information, it means that the current operator's information is not included in the preset maintenance database, proving that there is a safety risk in the meter box at this time. The current operator's information and unlocking information can be sent to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel can follow up on the maintenance in time.
[0122] This embodiment takes into account that when the secret key is inconsistent with the preset secret key, it may be that the maintenance personnel corresponding to the smart lock needs other maintenance personnel to help with maintenance, or it may be that someone else wants to unlock the lock. It can be determined whether the current operator is a maintenance personnel based on the identity information of the current operator. If so, the maintenance personnel corresponding to the smart lock can choose whether to unlock the lock. This ensures the safety of the meter box while facilitating normal maintenance by maintenance personnel.
[0123] In some embodiments, the above method may also include: when changes occur on the surface of the smart lock, generating a corresponding self-detection signal based on the changes; sending the self-detection signal to the cloud so that the cloud matches the corresponding response signal based on the self-detection signal; receiving the response signal and analyzing it to determine the response operation corresponding to the response signal to update the status of the lock body status detection circuit.
[0124] The preset maintenance database in the cloud may contain the corresponding response operation information when different changes occur on the surface of the smart lock. The self-detection signal may be a signal generated by the self-detection of the smart lock itself, which is used to detect changes on the surface of the smart lock. The cloud can match the corresponding response operation information according to the self-detection signal, such as issuing an alarm and sending a prompt message to the maintenance personnel corresponding to the smart lock. The response signal may be a signal carrying the response operation information. The response operations in the preset database may be updated.
[0125] Specifically, the smart lock may include a voltage detection unit to detect the performance of each part of the smart lock. When the surface of the smart lock changes, the internal performance may change, and the voltage at the current moment can be detected. When the surface of the smart lock is bumped, cut, aged, rusted, or other abnormal conditions occur, the voltage corresponding to the location where the abnormal condition occurs will change compared to the voltage under normal working conditions, and different self-detection signals will be generated according to the changes. The self-detection signal can be sent to the cloud, and the cloud can match the corresponding response operation information according to the change information of the smart lock surface carried in the self-detection signal, and convert it into a response signal and send it to the smart lock. The smart lock can analyze the specific operations involved and implement them. For example, disconnect the lock body status detection circuit.
[0126] It should be noted that when the surface of the lock body is rusted or aged, the self-detection signal may change steadily with each deepening of the change. Taking rust as an example, when a part of the lock body is rusted, the rusting process is certainly not achieved overnight, so there will be a certain time interval between the two times the rust range is expanded. Therefore, the voltage will basically not change every time it rusts a little, and the corresponding self-detection signal will fluctuate a little. At the same time, before the rust range is expanded, the voltage at the corresponding position is relatively stable, and the corresponding self-detection signal is also stable, but there is a little difference compared to the original. From this, it can be judged whether the current changes on the surface of the smart lock are caused by human damage or nature.
[0127] In this embodiment, the smart lock can perform self-detection according to the changes in the surface and send the corresponding self-detection signal to the cloud, which matches the corresponding response signal. The smart lock performs corresponding operations according to the response signal. The smart lock does not need to store the response operations corresponding to different changes, but only needs to communicate with the cloud when the surface of the smart lock changes. It ensures that different changes can correspond to accurate response operations, thereby improving the safety of the meter box.
[0128] In some embodiments, the above method may also include: when the secret key is consistent with the preset secret key and the random verification code is verified, receiving maintenance information detected by the lock body control module; generating a maintenance record based on the maintenance information, and sending the maintenance record to the cloud; generating a reminder to be supplemented based on the maintenance information, and sending the reminder to be supplemented to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel can supplement the maintenance record and perform maintenance in time.
[0129] The lock body control module can detect the time when the smart lock is opened, the way the smart lock is opened, the current state of the smart lock body, and other information. The above information can be used as maintenance information. Based on the maintenance information, a maintenance record containing the maintenance information can be generated, and the maintenance record needs to be supplemented by the maintenance personnel corresponding to the smart lock. The reminder to be supplemented can be generated based on the missing content in the maintenance record, such as the results of this maintenance, matters that need to be followed up, etc.
[0130] Specifically, when the secret key sent by the current operator is consistent with the preset secret key and the random verification code is verified, the lock body control module can summarize the information detected during the current operator's unlocking process to generate maintenance information. Generate a corresponding maintenance record based on the maintenance information and synchronize it to the cloud. The cloud determines which parts of the maintenance record are missing and need to be supplemented, and sends them to the smart lock. The smart lock generates a prompt to be supplemented and sends it to the corresponding maintenance personnel, which can also be accompanied by a warning sound. The corresponding maintenance personnel can complete the maintenance record based on the prompt to be supplemented.
[0131] In other embodiments, if the current operator is not the maintenance personnel corresponding to the smart lock, but the smart lock is opened normally, an unlocking information completion reminder can be sent to the maintenance personnel corresponding to the smart lock to remind the maintenance personnel to supplement the reason for unlocking, maintenance results and other information.
[0132] In this embodiment, when the secret key sent by the current operator is consistent with the preset secret key and the random verification code is verified, the maintenance information detected by the lock body control module can be received, and the corresponding maintenance record can be generated and synchronized to the cloud. Then the maintenance record is generated according to the maintenance information and sent to the corresponding maintenance personnel. The cloud can remind the maintenance personnel to perform maintenance in time according to the maintenance record, avoiding the maintenance personnel's failure to perform follow-up maintenance in time due to inadequate reminders.
[0133] Figure 3 A schematic diagram of a smart lock structure provided in one embodiment of the present application is shown in FIG. Figure 3 As shown, the smart lock 300 of this embodiment includes: an unlocking signal analysis module 301, a secret key determination module 302, a random verification code verification module 303 and a secondary lock activation module 304.
[0134] The unlocking signal analysis module 301 is used to receive the unlocking signal sent by the current operator and analyze the unlocking signal to determine the unlocking password corresponding to the unlocking signal; the unlocking password includes the secret key corresponding to the current operator and a random verification code;
[0135] The key determination module 302 is used to determine whether the key is consistent with the preset key. If not, the camera is turned on to obtain the information of the current operator, and the information of the current operator and the unlocking information are sent to the maintenance personnel corresponding to the smart lock;
[0136] A random verification code verification module 303, used to verify the random verification code when they are consistent;
[0137] The secondary lock activation module 304 is used to open the secondary lock and send the unlocking information to the maintenance personnel corresponding to the smart lock when the random verification code fails to be verified, and to issue an alarm to warn the current operator and surrounding residents.
[0138] Optionally, the smart lock is connected to the cloud through a network, and the smart lock 300 further includes a real-time verification code receiving module 305, which is used to:
[0139] Receiving a real-time verification code sent by the cloud;
[0140] The random verification code verification module 303 is specifically used for:
[0141] If they are consistent, the random verification code is matched with the real-time verification code for verification.
[0142] Optionally, the random verification code verification module 303 is specifically used for:
[0143] When the unlocking device of the current operator is close to the smart lock, a sensing signal is generated and sent to the cloud;
[0144] Receive a real-time verification code sent by the cloud according to the sensing signal.
[0145] Optionally, the lock body of the smart lock is connected to a lock body state detection circuit, and the lock body state detection circuit is connected to a lock body control module; when the lock body state is normal, the lock body state detection circuit is closed and sends a normal detection signal to the lock body control module; when the lock body control module receives the normal detection signal, it controls the smart lock to work normally; when the lock body state is abnormal, the lock body state detection circuit sends an abnormal detection signal to the lock body control module, or the lock body state detection circuit is disconnected; when the lock body control module receives the abnormal detection signal, it controls the smart lock to lock; the smart lock 300 also includes a smart lock surface detection module 306, which is used to:
[0146] Detecting the surface of the smart lock through the lock body status detection circuit;
[0147] When an abnormality occurs on the surface of the smart lock, a corresponding abnormality detection signal is generated and sent to the lock body control module, so that the lock body control module locks the smart lock and starts the secondary lock when the magnitude of the abnormality detection signal exceeds a preset signal threshold;
[0148] receiving a secondary lock unlocking signal sent by the current operator;
[0149] The secondary lock unlocking signal is analyzed. If the secondary lock unlocking password corresponding to the secondary lock unlocking signal is correct, the secondary lock is opened and a restart signal is sent to the lock body control module to restart the smart lock, so that the current operator can open the smart lock normally.
[0150] Optionally, the secret key determination module 302 is specifically configured to:
[0151] Determine whether the secret key is consistent with the preset secret key, and if not, turn on the camera to obtain the current operator's information;
[0152] Based on the cloud, determining whether the information of the current operator is included in a preset maintenance database;
[0153] If included, calling the identity information of the current operator in the preset maintenance database, and sending the identity information and unlocking information to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel corresponding to the smart lock can choose whether to open the smart lock;
[0154] If not included, the current operator's information and unlocking information are sent to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel corresponding to the smart lock can perform maintenance in time.
[0155] Optionally, the smart lock 300 further includes a self-detection module 307, which is used to:
[0156] When the lock body state detection circuit detects a change in the surface of the smart lock, a corresponding self-detection signal is generated according to the change;
[0157] Sending the self-detection signal to the cloud, so that the cloud matches a corresponding response signal according to the self-detection signal;
[0158] The response signal is received and analyzed, a response operation corresponding to the response signal is determined and fed back to the maintenance personnel corresponding to the smart lock.
[0159] Optionally, the smart lock 300 further includes a maintenance record supplement module 308, which is used to:
[0160] When the secret key is consistent with the preset secret key and the random verification code is verified, receiving maintenance information detected by the lock body control module;
[0161] generating a maintenance record according to the maintenance information, and sending the maintenance record to the cloud;
[0162] A reminder to be supplemented is generated based on the maintenance information, and the reminder to be supplemented is sent to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel can supplement the maintenance record and perform maintenance in time.
[0163] The device of this embodiment can be used to execute the method of any of the above embodiments. Its implementation principle and technical effects are similar and will not be described in detail here.
[0164] Figure 4 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application is shown in FIG. Figure 4 As shown, the electronic device 400 of this embodiment may include: a memory 401 and a processor 402 .
[0165] The memory 401 stores a computer program that can be loaded by the processor 402 and execute the method in the above embodiment.
[0166] The processor 402 and the memory 401 are connected, for example, via a bus.
[0167] Optionally, the electronic device 400 may further include a transceiver. It should be noted that in actual applications, the number of transceivers is not limited to one, and the structure of the electronic device 400 does not constitute a limitation on the embodiments of the present application.
[0168] Processor 402 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 402 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0169] The bus may include a path to transmit information between the above components. The bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0170] The memory 401 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0171] The memory 401 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 402. The processor 402 is used to execute the application code stored in the memory 401 to implement the contents shown in the above method embodiment.
[0172] The electronic devices include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs, desktop computers, etc. It can also be a server, etc. Figure 4 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0173] The electronic device of this embodiment can be used to execute the method of any of the above embodiments, and its implementation principle and technical effect are similar, which will not be described in detail here.
[0174] The present application also provides a computer-readable storage medium storing a computer program that can be loaded by a processor and execute the method in the above embodiment.
[0175] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
Claims
1. A smart lock anti-theft and early warning method, characterized in that: Applied to smart lock; the smart lock is connected to the cloud through a network; the smart lock includes a lock body and a lock body control module, the lock body is arranged on the outside of the meter box, and the lock body control module is arranged on the inside of the meter box; the lock body is connected to the lock body control module through a lock body state detection circuit; when the lock body state is normal, the lock body state detection circuit is closed and sends a normal detection signal to the lock body control module; when the lock body control module receives the normal detection signal, it controls the smart lock to work normally; when the lock body state is abnormal, the lock body state detection circuit sends an abnormal detection signal to the lock body control module; When the lock body control module receives the abnormal detection signal, it controls the smart lock to lock; a secondary lock is also provided inside the electric meter box; The method comprises: When it is detected that the unlocking device of the current operator is close to the smart lock, an induction signal is generated and sent to the cloud, so that the cloud sends a real-time verification code to the smart lock and the maintenance personnel corresponding to the smart lock; the unlocking device includes a mobile phone and an NFC induction card; Receiving a real-time verification code sent by the cloud according to the sensing signal; Receiving an unlocking signal sent by the current operator and analyzing the unlocking signal to determine an unlocking password corresponding to the unlocking signal; the unlocking password includes a secret key corresponding to the current operator and a random verification code; the secret key includes NFC data; Determine whether the secret key is consistent with the preset secret key. If not, turn on the camera to obtain the information of the current operator, and send the information of the current operator and the unlocking information to the maintenance personnel corresponding to the smart lock; If they are consistent, the random verification code is matched with the real-time verification code for verification; If the random verification code fails to be verified, the secondary lock is activated and the unlocking information is sent to the maintenance personnel corresponding to the smart lock, and an alarm is sounded to alert the current operator and surrounding residents; The method further comprises: Detecting the surface of the smart lock through the lock body status detection circuit; When an abnormality occurs on the surface of the smart lock, a corresponding abnormality detection signal is generated and sent to the lock body control module, so that the lock body control module locks the smart lock and starts the secondary lock when the magnitude of the abnormality detection signal exceeds a preset signal threshold; receiving a secondary lock unlocking signal sent by the current operator; Analyze the secondary lock unlocking signal, if the secondary lock unlocking password corresponding to the secondary lock unlocking signal is correct, then open the secondary lock and send a restart signal to the lock body control module to restart the smart lock, so that the smart lock returns to a normal working state, so that the current operator can open the smart lock normally; The smart lock includes a voltage detection unit inside. When the lock body state detection circuit detects a change on the surface of the smart lock, a corresponding self-detection signal is generated according to the change. The self-detection signal is used to determine whether the change on the surface of the smart lock is caused by human damage or nature. Sending the self-detection signal to the cloud, so that the cloud matches a corresponding response signal according to the self-detection signal; The response signal is received and analyzed, a response operation corresponding to the response signal is determined and fed back to the maintenance personnel corresponding to the smart lock.
2. The method according to claim 1, characterized in that: The determining whether the secret key is consistent with the preset secret key, if not consistent, turning on the camera to obtain current operator information, and sending the current operator information and unlocking information to the maintenance personnel corresponding to the smart lock, includes: Determine whether the secret key is consistent with the preset secret key, and if not, turn on the camera to obtain the current operator's information; Based on the cloud, determining whether the information of the current operator is included in a preset maintenance database; If included, calling the identity information of the current operator in the preset maintenance database, and sending the identity information and unlocking information to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel corresponding to the smart lock can choose whether to open the smart lock; If not included, the current operator's information and unlocking information are sent to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel corresponding to the smart lock can perform maintenance in time.
3. The method according to claim 1 or 2, characterized in that: Also includes: When the secret key is consistent with the preset secret key and the random verification code is verified, receiving maintenance information detected by the lock body control module; generating a maintenance record according to the maintenance information, and sending the maintenance record to the cloud; A reminder to be supplemented is generated based on the maintenance information, and the reminder to be supplemented is sent to the maintenance personnel corresponding to the smart lock, so that the maintenance personnel can supplement the maintenance record and perform maintenance in time.
4. A smart lock, characterized in that: The smart lock is connected to the cloud through a network; the smart lock includes: a lock body and a lock body control module, the lock body is arranged on the outside of the meter box, and the lock body control module is arranged on the inside of the meter box; the lock body is connected to the lock body control module through a lock body state detection circuit; when the lock body state is normal, the lock body state detection circuit is closed and sends a normal detection signal to the lock body control module; when the lock body control module receives the normal detection signal, it controls the smart lock to work normally; when the lock body state is abnormal, the lock body state detection circuit sends an abnormal detection signal to the lock body control module; when the lock body control module receives the abnormal detection signal, it controls the smart lock to lock; a secondary lock is also arranged inside the meter box; the smart lock also includes: A random verification code verification module is used to generate an induction signal and send it to the cloud when it is detected that the unlocking device of the current operator is close to the smart lock, so that the cloud sends a real-time verification code to the smart lock and the maintenance personnel corresponding to the smart lock; the unlocking device includes a mobile phone and an NFC induction card; A real-time verification code receiving module is used to: receive the real-time verification code sent by the cloud according to the sensing signal; An unlocking signal analysis module, used to receive an unlocking signal sent by the current operator and analyze the unlocking signal to determine an unlocking password corresponding to the unlocking signal; the unlocking password includes a secret key corresponding to the current operator and a random verification code; the secret key includes NFC data; A key determination module is used to determine whether the key is consistent with the preset key. If they are inconsistent, the camera is turned on to obtain the information of the current operator, and the information of the current operator and the unlocking information are sent to the maintenance personnel corresponding to the smart lock; The random verification code verification module is further used to match the random verification code with the real-time verification code for verification if they are consistent; A secondary lock activation module is used to open the secondary lock and send the unlocking information to the maintenance personnel corresponding to the smart lock when the random verification code fails to be verified, and to sound an alarm to warn the current operator and surrounding residents; The smart lock surface detection module is used to: detect the surface of the smart lock through the lock body state detection circuit; when an abnormality occurs on the surface of the smart lock, generate a corresponding abnormality detection signal and send it to the lock body control module, so that the lock body control module locks the smart lock and starts the secondary lock when the size of the abnormality detection signal exceeds a preset signal threshold; receive the secondary lock unlocking signal sent by the current operator; analyze the secondary lock unlocking signal, and if the secondary lock unlocking password corresponding to the secondary lock unlocking signal is correct, open the secondary lock and send a restart signal to the lock body control module to restart the smart lock, so that the smart lock can resume normal working state, so that the current operator can open the smart lock normally; The smart lock contains a voltage detection unit. When the lock body status detection circuit detects a change on the surface of the smart lock, a corresponding self-detection signal is generated according to the change. The self-detection signal is used to determine whether the change on the surface of the smart lock is caused by human damage or nature. The self-detection signal is sent to the cloud so that the cloud matches the corresponding response signal according to the self-detection signal. The response signal is received and analyzed to determine the response operation corresponding to the response signal and feed it back to the maintenance personnel corresponding to the smart lock.
5. An electronic device, characterized in that: include: Memory and processor; The memory is used to store program instructions; The processor is used to call and execute the program instructions in the memory to perform the method according to any one of claims 1-3.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program; when the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Combined password verification method, hardware terminal and password system
CN111028392A
Failure processing method and device for intelligent door lock and storage medium
CN111243142A
Fingerprint access control system
CN210442852U
Fingerprint identification intelligent lock
CN210918548U