Intelligent lock anomaly detection method and system, intelligent lock and storage medium

Through the collaborative work between smart locks and the combination of monitoring and broadcast modes, the problem of the inability to report information when the smart lock is abnormally powered off is solved, the user can receive information in a timely manner, and the user experience and detection efficiency are optimized.

CN119251932APending Publication Date: 2025-01-03DESSMANN CHINA MACHINERY & ELECTRONICS +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410943667.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

When the smart lock fails abnormally, it cannot inform the user through any communication means, resulting in the user being unable to receive the current information of the smart lock, affecting the user experience.

Method used

Design a smart lock exception detection method, monitor the operation information of other smart locks in broadcast mode, detect abnormal information, and report the abnormal identification and information to the server, using the assistance of surrounding smart locks to prevent single-player machines Communication failed, optimize the way users receive information.

Benefits of technology

Through the collaborative work between smart locks, users can ensure that users can receive abnormal information of smart locks in a timely manner, optimize the use experience of smart locks, reduce power consumption, and improve detection efficiency and reliability of information reporting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119251932A_ABST
    Figure CN119251932A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent electronic locks, and discloses an intelligent lock anomaly detection method and system, an intelligent lock and a storage medium. Intelligent lock information is reported and diffused to a whole distributed cluster, and the intelligent lock in a monitoring mode monitors operation information broadcasted by other intelligent locks in a broadcasting mode; according to the method and the system, the detected abnormal intelligent lock identifier and specific abnormal information are reported to the server, and the surrounding intelligent locks participate in abnormal information monitoring, so that the problem that the intelligent lock cannot report local information to the server under the abnormal condition of stand-alone communication is prevented, a user can receive the abnormal information of the intelligent lock in time, and the user experience is improved. And the use experience of the intelligent lock is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart electronic locks, and in particular to a smart lock abnormality detection method, system, smart lock and storage medium. Background Art

[0002] At present, all smart locks are equipped with communication modules, or have Bluetooth communication functions, which can communicate with mobile phone devices at close range, or have WIFI communication functions, which can communicate with remote servers. However, although WiFi communication has a long communication distance and households are generally equipped with routers, communication can be completed most of the time, but it is inevitable to encounter network disconnection problems. And smart locks generally use 2.4G channels for communication, which are prone to failure due to large interference. In addition, due to the high power consumption of WiFi communication, when the voltage of the smart lock is very low, it is easy to cause the battery to completely lose power and abnormality. If the smart lock is abnormally powered off, it is impossible to inform the user through any communication means, and the user cannot receive the current information of the smart lock, which affects the user experience of the smart lock. Summary of the invention

[0003] In view of this, the present invention provides a smart lock abnormality detection method, system, smart lock and storage medium to solve the problem that if the smart lock is abnormally powered off, the user cannot be informed through any communication means, and the user cannot receive the current information of the smart lock, affecting the user experience of the smart lock.

[0004] In the first aspect, the present invention provides a smart lock abnormality detection method, which is applied to a smart lock in a listening mode in a smart lock abnormality detection system, the smart lock abnormality detection system includes multiple smart locks, and the states of the smart locks include a listening mode and a broadcast mode. The method includes: receiving operation information broadcasted by each smart lock in the broadcast mode; detecting whether there is abnormal information in the operation information broadcasted by each smart lock, and if there is abnormal information in the operation information broadcasted by the current smart lock, sending the lock identifier and corresponding abnormal information of the current smart lock to a server.

[0005] The smart lock abnormality detection method provided by the present invention spreads the smart lock information report to the entire distributed cluster. The smart lock in monitoring mode monitors the operation information broadcast by other smart locks in broadcast mode, and reports the detected abnormal smart lock identification and specific abnormal information to the server. The surrounding smart locks participate in the abnormal information monitoring, thereby preventing the smart lock from being unable to report the local information to the server in the case of single-machine communication abnormality, so that the user can receive the abnormal information of the smart lock in time, thereby optimizing the user experience of the smart lock.

[0006] In an optional embodiment, after sending the lock identification and corresponding abnormal information of the current smart lock to the server, the method also includes: switching its own state from monitoring mode to broadcast mode, broadcasting its own operating information, and randomly setting the broadcast duration within a preset range of time; after the current duration reaches the randomly set broadcast duration, switching its own state to monitoring mode, and re-executing the step of receiving the operating information broadcast by each smart lock in the broadcast mode.

[0007] The present invention can ensure that the time for each smart lock to switch to the monitoring mode is staggered by randomly setting the broadcast duration within a preset range, and can also prevent the switching time from being too short to increase power consumption and too long to affect the detection timeliness.

[0008] In an optional embodiment, the method also includes: if it is detected that there is abnormal information in the operating information broadcast by the current smart lock, then recording the lock identification of the current smart lock and the corresponding number of occurrences of the abnormal information; repeatedly switching its own state to the listening mode for multiple times, and each time it switches to the listening mode, judging whether the operating information broadcast by the current smart lock contains abnormal information that is the same as the previous abnormal information, if there is abnormal information that is the same as the previous abnormal information, then increasing the number of occurrences of the abnormal information corresponding to the current smart lock; after repeatedly switching its own state to the listening mode for multiple times, judging whether the number of occurrences of the abnormal information corresponding to the current smart lock is greater than a preset number threshold, if it is greater than the preset number threshold, then sending the lock identification of the current smart lock and the corresponding abnormal information to the server.

[0009] The present invention designs a smart lock in a monitoring mode to report abnormal information to a server after detecting abnormal health of a smart lock for multiple times, thereby reducing the number of reports and power consumption.

[0010] In an optional embodiment, the method also includes: when in the current listening mode, if no operating information is received, repeating the listening operation a preset number of times; if no operating information is received after repeating the listening operation a preset number of times, switching its own state from the listening mode to the broadcast mode; if operating information broadcast by a smart lock in the broadcast mode is received during the process of repeating the preset number of listening operations, then executing the step of detecting whether there is abnormal information in the operating information broadcast by each smart lock.

[0011] If the smart lock designed by the present invention does not monitor any operating information when in the monitoring mode, and still does not monitor any operating information after repeated monitoring operations, it can directly switch to the broadcast mode to avoid wasting power consumption of the smart lock.

[0012] In the second aspect, the present invention provides a smart lock abnormality detection method, which is applied to a smart lock in a broadcast mode in a smart lock abnormality detection system. The method includes: broadcasting its own operating information to a smart lock in a listening mode, so that the smart lock in the listening mode detects whether there is abnormal information in the broadcasted operating information; if there is abnormal information in the operating information broadcast by the current smart lock, the lock identifier and corresponding abnormal information of the current smart lock are sent to the server.

[0013] In an optional embodiment, broadcasting its own operating information to a smart lock in a listening mode includes: encrypting the content of its own operating information except for the information on whether the smart lock is abnormal and the product attributes of the smart lock, and broadcasting the encrypted operating information, so that the smart lock in the listening mode receives the operating information broadcasted by the smart lock with the same product attributes based on the broadcasted smart lock product attributes.

[0014] The smart lock in the broadcast mode of the present invention encrypts the operating information broadcast by itself, thereby protecting the privacy and security of the smart lock.

[0015] In an optional embodiment, broadcasting its own operating information to a smart lock in a listening mode includes: compressing its own operating information and broadcasting the compressed operating information to the smart lock in the listening mode, and / or segmenting its own operating information and broadcasting the segmented information in sequence to the smart lock in the listening mode.

[0016] The present invention ensures that important operation information can be broadcasted and the resources consumed by broadcasting can be reduced by compressing or segmenting the broadcast operation information.

[0017] In the third aspect, the present invention provides a smart lock abnormality detection system including multiple smart locks, wherein the states of the smart locks include listening mode and broadcasting mode, wherein the smart lock in broadcasting mode broadcasts its own operating information to the smart lock in listening mode, and the smart lock in listening mode receives the operating information broadcasted by each smart lock in broadcasting mode, and detects whether there is abnormal information in the operating information broadcasted by each smart lock, and if there is abnormal information in the operating information broadcasted by the current smart lock, the lock identifier of the current smart lock and the corresponding abnormal information are sent to the server.

[0018] In a fourth aspect, the present invention provides a smart lock, which includes a controller, the controller includes a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the smart lock abnormality detection method of the first aspect or any corresponding embodiment thereof, or executes the smart lock abnormality detection method of the second aspect or any corresponding embodiment thereof by executing the computer instructions.

[0019] In a fifth aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the smart lock abnormality detection method of the above-mentioned first aspect or any corresponding embodiment, or to execute the smart lock abnormality detection method of the above-mentioned second aspect or any corresponding embodiment.

[0020] The smart lock anomaly detection system provided by the present invention spreads the smart lock information report to the entire distributed cluster. The smart lock in monitoring mode monitors the operation information broadcast by other smart locks in broadcast mode, and reports the detected smart lock identification and specific anomaly information to the server. The surrounding smart locks participate in the anomaly information monitoring, thereby preventing the smart lock from being unable to report local information to the server in the case of single-machine communication anomalies. This allows users to receive the smart lock anomaly information in a timely manner, thereby optimizing the user experience of the smart lock. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 is an example diagram of a smart lock state in a smart lock abnormality detection system according to an embodiment of the present invention;

[0023] Figure 2 is a structural block diagram of a smart lock abnormality detection system according to an embodiment of the present invention;

[0024] Figure 3 is a schematic diagram of the interaction process of the smart lock abnormality detection system according to an embodiment of the present invention;

[0025] Figure 4 is a flowchart of a method for detecting abnormality of a smart lock according to an embodiment of the present invention;

[0026] Figure 5 is a structural block diagram of a smart lock abnormality detection device according to an embodiment of the present invention;

[0027] Figure 6 is a structural block diagram of another smart lock abnormality detection device according to an embodiment of the present invention;

[0028] Figure 7 It is a schematic diagram of the hardware structure of the controller in the smart lock according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0030] Current smart locks are all equipped with communication modules, either with Bluetooth communication function, which can communicate with mobile phones and other devices at close range; or with WiFi communication function, which can communicate with remote servers.

[0031] Then both types of communication have certain limitations. Bluetooth communication has a limited range, and communication can only be completed within a certain range of the lock (several meters to more than ten meters). Although WiFi communication has a longer communication distance, and most households are generally equipped with routers, communication can be completed most of the time, but it is inevitable to encounter network disconnection problems. And smart locks generally use 2.4G channel communication, which is prone to failure due to large interference. In addition, WiFi communication has high power consumption. When the voltage of the smart lock is very low, it is easy to cause the battery to completely lose power and abnormalities.

[0032] In extreme cases, such as when the lock loses power abnormally, the user cannot be informed through any communication means. However, this abnormal situation needs to be informed to the user first. Therefore, it is difficult to cover all usage scenarios of smart locks through single-machine communication means.

[0033] Based on the above problems, an embodiment of the present invention provides a smart lock abnormality detection system, wherein the smart lock abnormality detection system includes multiple smart locks, and the states of the smart locks include a monitoring mode and a broadcast mode.

[0034] The embodiments of the present invention can generally be composed of all smart locks within a certain distance range to form a smart lock abnormality detection system. For example, in a residential building, the smart locks installed by the left and right neighbors and the upper and lower neighbors can form a smart lock abnormality detection system. This is only an example and is not limited to this. Figure 1As shown, taking the smart lock abnormality detection system including three smart locks as an example, the possible smart lock status situations are: all three smart locks are in broadcast mode; two smart locks are in broadcast mode, and one is in monitoring mode, and the smart lock in monitoring mode receives the operation information broadcast by the two smart locks in broadcast mode; one smart lock is in broadcast mode, two smart locks are in monitoring mode, and all three smart locks are in monitoring mode, but because the broadcast time is much longer than the monitoring time, the last situation is the least likely and is only taken as an example.

[0035] like Figure 2 As shown, the smart lock abnormality detection system includes a smart lock 1 in a listening mode and a smart lock 2 in a broadcasting mode. Specifically, the smart lock 2 in the broadcasting mode broadcasts its own operating information to the smart lock 1 in the listening mode. The smart lock 1 in the listening mode receives the operating information broadcasted by each smart lock in the broadcasting mode, and detects whether there is abnormal information in the operating information broadcasted by each smart lock. If there is abnormal information in the operating information broadcasted by the current smart lock, the lock identifier of the current smart lock and the corresponding abnormal information are sent to the server.

[0036] The smart lock of the embodiment of the present invention can switch to the monitoring mode first after the battery is inserted for the first time, that is, it is powered on, and can be switched to the monitoring mode at a fixed time later. The smart lock 1 in the monitoring mode monitors the operation information broadcast by the surrounding smart lock 2 in the broadcast mode, wherein the operation information broadcast by the smart lock may include but is not limited to the power level of the smart lock, whether the smart lock is connected to the network, whether it is locked, etc. The general broadcast operation information is a string of binary data, that is, a combination of 0 and 1, and a specific combination represents a specific meaning. For example, the first bit is the abnormal state bit, 0 means normal, 1 means abnormal, and it can also include specific abnormal information, such as the second to tenth bits represent the product attributes corresponding to the smart lock, the 11th bit represents whether there is a power shortage abnormality, the 12th bit represents whether there is a network abnormality, etc. The Bluetooth broadcast data can be up to 296 bits long. If the abnormal state in the operation information is detected to be 1, and the state of the 12th bit is detected to be 1, it indicates that the corresponding smart lock 2 in the broadcast mode has an abnormality, and The existing abnormal information is a network abnormality. As an example only, the lock identification of the smart lock with the abnormality and the corresponding specific abnormal information can be sent to the server via Bluetooth communication or WIFI, where the lock identification of the smart lock can be but is not limited to the smart lock production number set by the manufacturer when producing the smart lock or the ID or smart lock-specific name set by the user for his own smart lock. As an example only, the lock identification and broadcast operation information of the smart lock that is in broadcast mode and has no abnormal information can also be sent to the server, so that the server records the corresponding log information based on the lock identification, which is convenient for subsequent operations such as checking the cause of the problem. Wherein, the server can be the user corresponding to the smart lock, who informs the user of the smart lock with the abnormality, or it can be the server manufacturer. After receiving the smart lock identification and abnormal information, the server manufacturer can send a text message in advance to inform the user corresponding to the smart lock identification. After the user confirms that the abnormality has occurred, he can repair it by himself or contact the server manufacturer for repair. As an example only.

[0037] The smart lock anomaly detection system provided by the present invention spreads the smart lock information report to the entire distributed cluster. The smart lock in monitoring mode monitors the operation information broadcast by other smart locks in broadcast mode, and reports the detected smart lock identification and specific anomaly information to the server. The surrounding smart locks participate in the anomaly information monitoring, thereby preventing the smart lock from being unable to report local information to the server in the case of single-machine communication anomalies. This allows users to receive the smart lock anomaly information in a timely manner, thereby optimizing the user experience of the smart lock.

[0038] In an optional embodiment, after the smart lock 1 in the monitoring mode sends the lock identification and corresponding abnormal information of the current smart lock to the server, it switches its own state from the monitoring mode to the broadcast mode, broadcasts its own operation information, and randomly sets the broadcast duration within a preset time range; after the current duration reaches the randomly set broadcast duration, it switches its own state to the monitoring mode, and re-executes the step of receiving the operation information broadcast by each smart lock in the broadcast mode.

[0039] After sending the lock identification and corresponding abnormal information of the current smart lock to the server, the smart lock 1 in the monitoring mode of the embodiment of the present invention can switch its own state to the broadcast mode to broadcast its own operation information, and can randomly set the time for the next switch to the monitoring mode. For example, the switching time can be set to a random value between 1 hour and 2 hours, and the timing can be started. Before the switching time is reached, the smart lock is in a dormant state, that is, the broadcast mode. Because the power consumption of the Bluetooth broadcast data of the smart lock is very small, while the power consumption of monitoring is relatively large, generally the smart lock is in the broadcast mode most of the time, and a very small part is in the monitoring mode, such as the time in the monitoring mode is 12s, just as an example. When the recorded time reaches the randomly set broadcast time, the smart lock will switch to the monitoring mode again to receive the operation information broadcasted by each smart lock in the broadcast mode.

[0040] The present invention can ensure that the time for each smart lock to switch to the monitoring mode is staggered by randomly setting the broadcast duration within a preset range, and can also prevent the switching time from being too short to increase power consumption and too long to affect the detection timeliness.

[0041] In an optional embodiment, if the smart lock 1 in monitoring mode detects that there is abnormal information in the operating information broadcast by the current smart lock, it records the lock identification of the current smart lock and the corresponding number of abnormal information occurrences; repeatedly switches its own state to the monitoring mode, and each time it switches to the monitoring mode, determines whether the operating information broadcast by the current smart lock contains abnormal information that is the same as the previous abnormal information. If there is abnormal information that is the same as the previous abnormal information, the number of occurrences of the abnormal information corresponding to the current smart lock is increased; after repeatedly switching its own state to the monitoring mode, determine whether the number of occurrences of the abnormal information corresponding to the current smart lock is greater than a preset number threshold. If it is greater than the preset number threshold, the lock identification of the current smart lock and the corresponding abnormal information are sent to the server.

[0042] Because some anomalies of smart locks are recoverable, such as the smart lock broadcasts that it is in an abnormally open state, but the reason for the anomaly is that the user did not close the door lock properly, but may close it soon. At this time, the smart lock is not in an abnormally open state. Therefore, the smart lock 1 in the monitoring mode of the embodiment of the present invention may not report it to the server immediately when it detects that there is abnormal information in the operating information broadcast by the current smart lock, but first records the lock identifier of the current smart lock and the corresponding number of occurrences of the abnormal information. For example, if the abnormal information is detected for the first time, the number of occurrences of the abnormal information is recorded as 1. This is just an example.

[0043] The next time the smart lock is in the monitoring mode, it monitors the operating information broadcast by each smart lock 2 in the broadcasting mode, and determines whether there is abnormal information in the operating information broadcast by the current smart lock that is the same as the previous abnormal information. If so, the number of occurrences of the abnormal information corresponding to the current smart lock is increased.

[0044] After the smart lock repeatedly switches to the monitoring mode, after detecting and recording whether there is any abnormal information in the operating information broadcast by each smart lock 2 in the broadcast mode, it can be determined whether the number of occurrences of the abnormal information corresponding to the current smart lock is greater than the preset threshold number, where the preset threshold number is the same as the number of times the smart lock switches to the monitoring mode. Generally, after the smart lock repeats monitoring three times, the number of abnormal information appearing in the current smart lock is also three times. In this case, the lock identifier and corresponding abnormal information of the current smart lock can be sent to the server, as an example only.

[0045] The present invention designs a smart lock in a monitoring mode to report abnormal information to a server after detecting abnormal health of a smart lock for multiple times, thereby reducing the number of reports and power consumption.

[0046] In an optional embodiment, if the smart lock 1 in listening mode does not receive any operating information when it is currently in listening mode, it will repeat the listening operation a preset number of times; if it still does not receive any operating information after repeating the listening operation a preset number of times, it will switch its own state from listening mode to broadcast mode; if it receives operating information broadcast by the smart lock 2 in broadcast mode during the process of repeating the preset number of listening operations, it will execute the step of detecting whether there is abnormal information in the operating information broadcast by each smart lock.

[0047] In an embodiment of the present invention, if a smart lock 1 in a listening mode does not detect any operating information broadcast by any smart lock when it is in the listening mode for the current time, the listening operation can be repeated multiple times in the current listening mode. In the process of repeating the listening operation multiple times, the operating information broadcast by other smart locks can be detected. Regardless of whether the detected operating information contains abnormal information, the operation can be switched to the broadcast mode after being reported to the server. If no operating information is received after repeating the listening operation multiple times, the listening mode is canceled and the state is switched to the broadcast mode. The number of repetitions of the listening operation can be set according to actual needs. If it is necessary to save smart lock resources, a smaller number of repetitions can be set. Generally, the number of repetitions is set to 3 times, which is just an example.

[0048] If the smart lock designed by the present invention does not monitor any operating information when in the monitoring mode, and still does not monitor any operating information after repeated monitoring operations, it can directly switch to the broadcast mode to avoid wasting power consumption of the smart lock.

[0049] In an optional embodiment, the smart lock 2 in broadcast mode encrypts the content of its own operating information except for the information on whether the smart lock is abnormal and the product attributes of the smart lock, and broadcasts the encrypted operating information, so that the smart lock 1 in listening mode receives the operating information broadcast by the smart lock with the same product attributes based on the broadcasted smart lock product attributes.

[0050] The embodiment of the present invention takes into account that many devices will broadcast their own operating information, such as smart lights and other devices at home. Therefore, the smart lock 2 in broadcast mode will expose its own smart lock product attributes when broadcasting its own operating information. The smart lock 1 in monitoring mode can determine that the broadcasting device needs to be monitored based on the smart lock product being broadcast. Considering the privacy of the smart lock broadcast information, the smart lock 2 in broadcast mode needs to encrypt the specific content of the broadcast before broadcasting the operating information. It can only expose whether there is abnormal information. Whether there is an abnormality is to facilitate the lock in monitoring to quickly filter out some unnecessary broadcast data. The specific health information of the smart lock needs to be encrypted.

[0051] The smart lock 1 in the monitoring mode can determine whether there is an abnormality in the smart lock based on the exposed abnormal information. If an abnormality is detected, the operation information broadcast by the smart lock with the abnormality can be directly reported to the server. The server can decrypt the operation information broadcast by the smart lock to determine the specific abnormal information of the smart lock and perform subsequent processing.

[0052] The smart lock in the broadcast mode of the present invention encrypts the operating information broadcast by itself, thereby protecting the privacy and security of the smart lock.

[0053] In an optional embodiment, the smart lock 2 in the broadcast mode compresses its own operating information and broadcasts the compressed operating information to the smart lock 1 in the listening mode, and / or segments its own operating information and broadcasts the segmented information in sequence to the smart lock 1 in the listening mode.

[0054] In the embodiment of the present invention, because the length of the broadcast information is limited, the smart lock 2 in the broadcast mode can compress the operation information as much as possible before broadcasting its own operation information, and can broadcast the most important information, such as whether there is an abnormality, abnormal information, etc., just as an example. If there is too much operation information to be broadcast, you can also choose to broadcast in segments or time, that is, after each segment of operation information is broadcast for a certain period of time, then switch to the next segment of operation information for broadcasting, just as an example.

[0055] The present invention ensures that important operation information can be broadcasted and the resources consumed by broadcasting can be reduced by compressing or segmenting the broadcast operation information.

[0056] The embodiment of the present invention also provides a smart lock abnormality detection method, which is applied to Figure 2 The smart lock 1 in the monitoring mode and the smart lock 2 in the broadcasting mode are shown, where Figure 3 As shown, the smart lock 1 in the monitoring mode is used to execute steps S101 to S102, and the smart lock 2 in the monitoring mode is used to execute step S201.

[0057] Step S201, broadcast its own operation information to the smart lock in monitoring mode.

[0058] Step S101, receiving the operation information broadcasted by each smart lock in the broadcast mode.

[0059] Step S102, detect whether there is abnormal information in the operation information broadcast by each smart lock. If there is abnormal information in the operation information broadcast by the current smart lock, the lock identifier of the current smart lock and the corresponding abnormal information are sent to the server.

[0060] The smart lock of the embodiment of the present invention can switch to the monitoring mode first after the battery is inserted for the first time, that is, it is powered on, and can be switched to the monitoring mode at a scheduled time later. The smart lock in the monitoring mode monitors the operating information broadcast by the surrounding smart locks in the broadcast mode, wherein the operating information broadcast by the smart lock may include but is not limited to the power of the smart lock, whether the smart lock is connected to the network, whether it is locked, etc. The operating information broadcast generally is a string of binary data, that is, a combination of 0 and 1, and a specific combination represents a specific meaning. For example, the first bit is the abnormal status bit, 0 means normal, 1 means abnormal, and it can also include specific abnormal information, such as the 2nd to 10th bits represent the product attributes corresponding to the smart lock, the 11th bit represents whether there is a power shortage abnormality, the 12th bit represents whether there is an networking abnormality, etc. The data of the Bluetooth broadcast can be up to 296 bits long. If the running If the abnormal status in the information is 1, and the status of the 12th bit is detected to be 1, it means that the corresponding smart lock in broadcast mode has an abnormality, and the existing abnormal information is a network abnormality. As an example only, the lock identification and specific abnormal information of the smart lock can be sent to the server via Bluetooth communication or WIFI, or the operation information broadcast by the smart lock in broadcast mode and without abnormal information can be sent to the server, so that the server records log information for subsequent operations such as checking the cause of the problem. Among them, the server can be the user corresponding to the smart lock, who informs the user of the smart lock that has an abnormality, or it can be the server manufacturer. After receiving the smart lock identification and abnormal information, the server manufacturer can send a text message to the user in advance. After the user confirms the abnormality, he can repair it by himself or contact the server manufacturer for repair. This is just an example.

[0061] In a specific embodiment, Figure 4 As shown, after the smart lock is powered on, its own state switches to monitoring mode, and monitors the operating information broadcast by the surrounding smart locks. The monitoring time can be set according to the actual situation, and can generally be set to monitor for 3 seconds. If the health information, i.e., the operating information, broadcast by the smart lock is monitored, whether the health status of the smart lock is abnormal is detected. If there is an abnormality, the health status can be reported to the server through WIFI or Bluetooth communication. After reporting the health status to the server, its own state can be switched from monitoring mode to broadcast mode, and the switching time can be randomly set from 1 to 2 hours. Before the switching time is reached, the smart lock is in sleep mode, i.e., broadcast mode. When the current broadcast time reaches the switching time, it can be switched to monitoring mode again.

[0062] If no operation information is heard after listening for 3 seconds, the listening operation can be repeated three times. If operation information is heard during the listening operation, it can be detected whether there is abnormal information in the operation information and reported to the server. If no operation information is heard after performing the listening operation three times, the state of the device can be switched to the broadcast mode. This is only an example. For detailed description, please refer to the above embodiment, which will not be repeated here.

[0063] In this embodiment, a smart lock abnormality detection device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0064] This embodiment provides a smart lock abnormality detection device, which is applied to a smart lock in a monitoring mode in a smart lock abnormality detection system. The smart lock abnormality detection system includes multiple smart locks, and the states of the smart locks include a monitoring mode and a broadcast mode. Figure 5 As shown, it includes: an information monitoring module 501, which is used to receive the operation information broadcasted by each smart lock in the broadcast mode. An information reporting module 502, which is used to detect whether there is abnormal information in the operation information broadcasted by each smart lock. If there is abnormal information in the operation information broadcasted by the current smart lock, the lock identifier of the current smart lock and the corresponding abnormal information are sent to the server.

[0065] In some optional embodiments, after the lock identification and corresponding abnormal information of the current smart lock are sent to the server, the smart lock abnormality detection device also includes: a switching duration setting module, which is used to switch its own state from listening mode to broadcast mode, broadcast its own operating information, and randomly set the broadcast duration within a preset range of time; a state switching module, which is used to switch its own state to listening mode after the current duration reaches the randomly set broadcast duration, and re-execute the step of receiving the operating information broadcast by each smart lock in the broadcast mode.

[0066] In some optional embodiments, the smart lock abnormality detection device also includes: an abnormality count calculation module, which is used to record the lock identification of the current smart lock and the corresponding number of abnormal information occurrences if abnormal information is detected in the operation information broadcast by the current smart lock; a monitoring mode switching module, which is used to repeatedly switch its own state to the monitoring mode, and each time it switches to the monitoring mode, it is determined whether the operation information broadcast by the current smart lock contains abnormal information that is the same as the previous abnormal information. If there is abnormal information that is the same as the previous abnormal information, the number of occurrences of the abnormal information corresponding to the current smart lock is increased; an abnormal information reporting module, which is used to determine whether the number of occurrences of the abnormal information corresponding to the current smart lock is greater than a preset number threshold after repeatedly switching its own state to the monitoring mode. If it is greater than the preset number threshold, the lock identification and corresponding abnormal information of the current smart lock are sent to the server.

[0067] In some optional embodiments, the smart lock abnormality detection device also includes: a monitoring operation repetition module, which is used to repeat the monitoring operation a preset number of times if no operating information is received when the monitoring operation is currently in the monitoring mode; a mode switching module, which is used to switch its own state from the monitoring mode to the broadcast mode if no operating information is received after repeating the monitoring operation a preset number of times; an information reporting module, which is used to execute the step of detecting whether there is abnormal information in the operating information broadcast by each smart lock if the operating information broadcast by the smart lock in the broadcast mode is received during the process of repeating the monitoring operation a preset number of times.

[0068] This embodiment provides a smart lock abnormality detection device, which is applied to a smart lock in a broadcast mode in a smart lock abnormality detection system, such as Figure 6 As shown, it includes: an information broadcast module 601, which is used to broadcast its own operating information to the smart lock in the listening mode, so that the smart lock in the listening mode can detect whether there is abnormal information in the broadcasted operating information. If there is abnormal information in the operating information broadcast by the current smart lock, the lock identifier of the current smart lock and the corresponding abnormal information are sent to the server.

[0069] In some optional embodiments, the information broadcast module 601 includes: an information encryption unit, which is used to encrypt the content of its own operating information except for whether the smart lock is abnormal and the product attributes of the smart lock, and broadcast the encrypted operating information so that the smart lock in the listening mode can receive the operating information broadcast by the smart lock with the same product attributes based on the broadcast smart lock product attributes.

[0070] In some optional embodiments, the information broadcast module 601 includes: an information compression unit, which is used to compress its own operating information and broadcast the compressed operating information to the smart lock in the listening mode, and / or, an information segmentation unit, which is used to segment its own operating information and broadcast the segmented information in sequence to the smart lock in the listening mode.

[0071] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0072] The smart lock abnormality detection device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0073] The embodiment of the present invention also provides a smart lock having the above Figure 7Controller shown.

[0074] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a controller provided by an optional embodiment of the present invention, such as Figure 7 As shown, the controller includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the controller, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple controllers can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0075] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0076] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0077] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the controller, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the controller via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0078] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0079] The controller also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0080] The input device 30 can receive input digital or character information and generate signal input related to the user settings and function control of the controller, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0081] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0082] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for detecting abnormality of a smart lock, characterized in that: Applied to a smart lock in a monitoring mode in a smart lock abnormality detection system, the smart lock abnormality detection system includes multiple smart locks, and the states of the smart locks include a monitoring mode and a broadcast mode. The method includes: Receive the operation information broadcasted by each smart lock in broadcast mode; Detect whether there is abnormal information in the operation information broadcast by each smart lock respectively. If there is abnormal information in the operation information broadcast by the current smart lock, send the lock identifier of the current smart lock and the corresponding abnormal information to the server.

2. The method according to claim 1, characterized in that After sending the lock identification of the current smart lock and the corresponding abnormal information to the server, the method further includes: Switch its own state from monitoring mode to broadcast mode, broadcast its own operation information, and randomly set the broadcast duration within the preset range; After the current duration reaches the randomly set broadcast duration, the state of the smart lock is switched to the monitoring mode, and the step of receiving the operation information broadcasted by each smart lock in the broadcast mode is re-executed.

3. The method according to claim 2, characterized in that The method further comprises: If abnormal information is detected in the operation information broadcast by the current smart lock, the lock ID of the current smart lock and the number of occurrences of the corresponding abnormal information are recorded; Repeatedly switch its own state to monitoring mode multiple times, and each time it switches to monitoring mode, determine whether the operation information broadcast by the current smart lock contains the same abnormal information as the previous abnormal information. If there is abnormal information that is the same as the previous abnormal information, increase the number of occurrences of the abnormal information corresponding to the current smart lock; After repeatedly switching its own state to the monitoring mode, it is determined whether the number of occurrences of the abnormal information corresponding to the current smart lock is greater than the preset number threshold. If it is greater than the preset number threshold, the lock identifier of the current smart lock and the corresponding abnormal information are sent to the server.

4. The method according to claim 1, characterized in that The method further comprises: When in the monitoring mode for the current time, if no operation information is received, the monitoring operation is repeated for a preset number of times; If no operation information is received after repeating the preset number of monitoring operations, the state of the device will be switched from monitoring mode to broadcast mode; If, during the process of repeating the preset number of monitoring operations, the operation information broadcast by the smart lock in the broadcast mode is received, the step of detecting whether there is abnormal information in the operation information broadcast by each smart lock is executed.

5. A method for detecting abnormality of a smart lock, characterized in that: Applied to a smart lock in a broadcast mode in a smart lock anomaly detection system, the method comprises: Broadcast its own operating information to the smart lock in listening mode, so that the smart lock in listening mode can detect whether there is abnormal information in the broadcasted operating information. If there is abnormal information in the operating information broadcast by the current smart lock, the lock identifier of the current smart lock and the corresponding abnormal information will be sent to the server.

6. The method according to claim 5, characterized in that The broadcasting of its own operation information to the smart lock in the monitoring mode includes: The content of its own operating information except for the information on whether the smart lock is abnormal and the product attributes of the smart lock is encrypted, and the encrypted operating information is broadcast so that the smart lock in the listening mode can receive the operating information broadcast by the smart lock with the same product attributes based on the broadcasted smart lock product attributes.

7. The method according to claim 5, characterized in that The broadcasting of its own operation information to the smart lock in the monitoring mode includes: Compress its own operating information and broadcast the compressed operating information to the smart lock in monitoring mode, and / or, The system processes its own operation information in segments and broadcasts the segmented information to the smart locks in the monitoring mode in sequence.

8. A smart lock abnormality detection system, characterized in that: The smart lock abnormality detection system includes multiple smart locks, and the states of the smart locks include monitoring mode and broadcasting mode, wherein: The smart lock in broadcast mode broadcasts its own operation information to the smart lock in monitoring mode. The smart lock in monitoring mode receives the operating information broadcasted by each smart lock in broadcasting mode, and detects whether there is abnormal information in the operating information broadcasted by each smart lock. If there is abnormal information in the operating information broadcasted by the current smart lock, the lock identifier of the current smart lock and the corresponding abnormal information are sent to the server.

9. A smart lock, characterized in that: The smart lock includes a controller, which includes a memory and a processor. The memory and the processor are communicatively connected to each other. The memory stores computer instructions. The processor executes the smart lock abnormality detection method described in any one of claims 1 to 4, or executes the smart lock abnormality detection method described in any one of claims 5 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the smart lock abnormality detection method described in any one of claims 1 to 4, or to execute the smart lock abnormality detection method described in any one of claims 5 to 7.