Door opening notification pushing method, door lock, and computer storage medium
By detecting the door lock's unlocking operation, parsing the key information, and finding the do-not-disturb mode, the problem of smart door lock notification functions not meeting user expectations has been solved, achieving flexible notification control and improving user experience and security.
Patent Information
- Application Number
- CN202411486315.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2024-08-26
- Filing Date
- 2024-10-23
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2044-10-23
AI Technical Summary
The door opening notification function of existing smart door locks does not meet user expectations in certain situations, requiring users to manually turn off or disable the notification, which lacks flexibility and convenience.
By detecting the door lock's unlocking operation, parsing the key information, and finding the preset on/off state of the Do Not Disturb mode, if enabled, push notifications are disabled. It supports key type, content, and user-specific Do Not Disturb settings, and adjusts notification push based on time period and operation frequency.
It enables flexible control over door opening notifications, allowing users to disable notifications manually when they do not wish to be disturbed, thus improving convenience and security.
Smart Images

Figure CN119314246B_ABST
Abstract
Description
[0001] This application claims priority to domestic application number 202411175870.2. Technical Field
[0002] This application relates to the field of smart door lock technology, and more specifically, to a method for sending door opening notifications, a door lock, and a computer storage medium. Background Technology
[0003] With the development of technology, smart locks have gradually become an indispensable part of daily life due to their convenience and security. As a smart home device, the door opening notification function of a smart lock is crucial. Through notifications or status information displayed on a mobile application, users can easily monitor the status and operation of the smart lock.
[0004] While door opening notification functionality in related technologies is practical, it may not meet user expectations in certain situations. For example, in situations where users do not want to be disturbed (such as returning home late at night), they usually need to turn off all notifications or manually disable door opening notifications within the application, which contradicts their actual needs and is neither convenient nor flexible.
[0005] There are currently no effective solutions to the aforementioned problems in the relevant technologies. Summary of the Invention
[0006] This application provides a method for sending door opening notifications, a door lock, and a computer storage medium to solve the aforementioned technical problems existing in related technologies.
[0007] According to one embodiment of this application, a method for pushing door opening notifications is provided, comprising: detecting an unlocking operation on a door lock; when an unlocking operation on the door lock is detected, obtaining unlocking data of the current unlocking operation; parsing first key information of the unlocking data, searching for a preset on / off state of a do-not-disturb mode that matches the first key information; if the preset on / off state of the do-not-disturb mode is on, then prohibiting the push of door opening notifications to clients bound to the door lock.
[0008] According to another embodiment of this application, a door opening notification push device is provided, comprising: a detection module for detecting an unlocking operation on a door lock; an acquisition module for acquiring unlocking data of the current unlocking operation when an unlocking operation on the door lock is detected; a search module for parsing first key information of the unlocking data and searching for a preset on / off state of a do-not-disturb mode that matches the first key information; and a push module for prohibiting the push of door opening notifications to clients bound to the door lock if the preset on / off state of the do-not-disturb mode is on.
[0009] Furthermore, the search module includes a first acquisition unit, used to acquire the target key type corresponding to the first key information; and a first query unit, used to query the on / off status of the do-not-disturb mode corresponding to the target key type in a pre-set mapping relationship list between key types and do-not-disturb modes.
[0010] Furthermore, the search module also includes a second acquisition unit, used to acquire the target key content corresponding to the first key information; and a second query unit, used to query the on / off status of the do-not-disturb mode corresponding to the target key content in a preset mapping relationship list between key content and do-not-disturb mode.
[0011] Furthermore, the door opening notification push device also includes an adding module, used to add a mode on / off option for a do-not-disturb mode for each newly registered second key information when registering key information for the first time; and a storage module, used to obtain the user's selection result of the mode on / off option, use the selection result as the preset on / off state of the do-not-disturb mode corresponding to the second key information; generate a mapping relationship between the second key information and the preset on / off state of the do-not-disturb mode, and save it to the mapping relationship list.
[0012] Furthermore, the door opening notification push device also includes a detection module for detecting whether the user has updated the preset on / off state of the do-not-disturb mode corresponding to the second key information; and an update module for updating the updated preset on / off state to the mapping relationship list if the user updates the preset on / off state.
[0013] Furthermore, the door opening notification push device also includes a parsing module for parsing the first key information and the unlocking timestamp of the unlocking data; a judgment module for finding the preset on / off state of the do-not-disturb mode that matches the first key information, and judging whether the unlocking timestamp is within a preset do-not-disturb time period; if the preset on / off state of the do-not-disturb mode is on and the unlocking timestamp is within the preset do-not-disturb time period, then obtaining the end time of the do-not-disturb time period; and detecting the current time, and after the current time reaches the end time, pushing the door opening notification to the client bound to the door lock.
[0014] Furthermore, the door opening notification push device also includes a detection module for monitoring the frequency of user unlocking operations on the door lock; if the unlocking operation frequency exceeds a preset threshold, the preset on / off state of the do-not-disturb mode is temporarily canceled, allowing door opening notifications to be pushed to the client bound to the door lock.
[0015] According to yet another embodiment of this application, a computer storage medium is also provided, wherein a computer program is stored in the computer storage medium, and the computer program is configured to execute the steps in any of the above-described apparatus embodiments when it is run.
[0016] According to another embodiment of this application, an electronic device is also provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; wherein: the memory is used to store computer programs; and the processor is used to execute the steps in the above method by running the programs stored in the memory.
[0017] According to yet another embodiment of this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to perform the steps in the above-described method.
[0018] This application embodiment detects unlocking operations on a door lock; upon detecting an unlocking operation, it acquires the unlocking data of the current unlocking operation; it parses the first key information of the unlocking data and searches for the preset on / off state of the Do Not Disturb mode that matches the first key information; if the preset on / off state of the Do Not Disturb mode is on, it prohibits pushing door opening notifications to the client bound to the door lock. If a user does not want to receive notifications when opening the door, they can perform an unlocking operation using specific key information. If the key information is found to have enabled the Do Not Disturb mode, the door opening will not push a door opening notification to the client, thus improving the flexibility of door opening notification push without needing to turn off all notifications or manually disable door opening notifications in the application. Attached Figure Description
[0019] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0020] Figure 1 This is a hardware structure block diagram of a smart door lock according to an embodiment of this application;
[0021] Figure 2 This is a flowchart of a door opening notification push method according to an embodiment of this application;
[0022] Figure 3 This is a structural block diagram of a door opening notification push device according to an embodiment of this application. Detailed Implementation
[0023] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all of them. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present application. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of the present application can be combined with each other.
[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0025] Example 1
[0026] The method embodiment provided in Embodiment 1 of this application can be executed in a smart lock, mobile phone, tablet, or similar computing device. Taking its operation on a smart lock as an example, Figure 1 This is a hardware structure block diagram of a smart door lock according to an embodiment of this application. Figure 1 As shown, a smart door lock may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. Optionally, the smart lock may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the smart lock described above. For example, a smart lock may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0027] The memory 104 can be used to store smart lock programs, such as application software programs and modules, like the smart lock program corresponding to a door opening notification push method in this embodiment. The processor 102 executes various functional applications and data processing by running the smart lock program stored in the memory 104, thus implementing the aforementioned method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the smart lock via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0028] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the smart lock's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0029] This embodiment provides a method for sending door opening notifications. Figure 2 This is a flowchart of a door opening notification push method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:
[0030] Step S10: Detect the unlocking operation of the door lock;
[0031] In this embodiment, users can directly enter a key on the door lock's input device to unlock the door. The key can include fingerprints, passwords, or cards. Alternatively, users can remotely control the door via an app on a mobile device (such as a mobile phone). Users can unlock the door simply by entering the corresponding fingerprint or password on their mobile phone.
[0032] Step S20: When an unlocking operation on the door lock is detected, the unlocking data of the current unlocking operation is obtained;
[0033] Step S30: parse the first key information of the unlocking data and find the preset on / off state of the do-not-disturb mode that matches the first key information;
[0034] Step S40: If the preset on / off state of the Do Not Disturb mode is on, then push door opening notifications to the client bound to the door lock are prohibited.
[0035] In this embodiment, separate do-not-disturb modes are preset for different key information, allowing for customizable on / off settings for different key information. The system detects user unlocking operations on the door lock. Upon detection, the system acquires the unlocking data, parses the first key information from the unlocking data, and searches for the preset on / off state of the do-not-disturb mode that matches this first key information. If the preset on / off state of the do-not-disturb mode is on, pushing door opening notifications to the client bound to the door lock is prohibited; if the preset on / off state of the do-not-disturb mode is off, pushing door opening notifications to the client bound to the door lock is allowed.
[0036] Through the above steps, if a user does not want to receive a notification when opening the door (for example, when the user comes home late and does not want to disturb their family, or simply does not want to be disturbed when opening the door this time), the unlocking operation is performed using specific key information. If the key information is found to be in Do Not Disturb mode, the door opening will not push a door opening notification to the client. This eliminates the need to turn off all notifications or manually disable door opening notifications in the application, thus improving the flexibility of door opening notification push.
[0037] In one embodiment of this example, before searching for the preset on / off state of the Do Not Disturb mode that matches the first key information, the method further includes:
[0038] A1. When registering key information for the first time, a mode on / off option for Do Not Disturb mode is added for each newly registered second key information.
[0039] A2, obtain the user's selection result for the mode on / off option, and use the selection result as the preset on / off state of the do-not-disturb mode corresponding to the second key information;
[0040] A3. Generate a mapping relationship between the second key information and the preset on / off state of the Do Not Disturb mode, and save it to the mapping relationship list.
[0041] In this embodiment, when adding key information for the first time, a do-not-disturb mode is set for that key information. This setting process can be done locally on the smart lock or on a mobile terminal (such as a mobile phone). This embodiment uses setting on a mobile phone as an example. In this embodiment, the second key information is the key information added or updated for the first time in the mapping relationship list, and the first key information is the key information used to unlock the lock.
[0042] The app binds to the smart lock via a mobile phone and adds second key information, including fingerprint, finger vein, password, or card information. After adding the second key information, a "Do Not Disturb" mode is enabled / disabled, allowing users to choose whether to enable or disable it based on their needs. In this embodiment, the default state for "Do Not Disturb" mode is off. The app retrieves the user's selection of the mode enable / disabled option. If the user selects to enable "Do Not Disturb," the preset enable / disabled state of the "Do Not Disturb" mode corresponding to the second key information is set to "on," generating a mapping relationship between the second key information and the "Do Not Disturb" mode being enabled, and saving it to a mapping relationship list. If the user selects to disable "Do Not Disturb," the preset enable / disabled state of the "Do Not Disturb" mode corresponding to the second key information is set to "disable," generating a mapping relationship between the second key information and the "Do Not Disturb" mode being disabled, and saving it to a mapping relationship list.
[0043] In this embodiment, setting the Do Not Disturb mode via the APP is intuitive and simple. Users only need to check or uncheck the corresponding options when adding key information. The relevant parameters are uploaded and saved to a mapping table in the cloud. So that when the user unlocks the door using the key information, the preset Do Not Disturb mode of the key information can be found in the mapping table stored in the cloud. When Do Not Disturb mode is enabled, push door opening notifications to the client bound to the door lock are prohibited.
[0044] In this embodiment, after generating the mapping relationship between the second key information and the preset on / off state of the Do Not Disturb mode, and saving it to the mapping relationship list, the method further includes:
[0045] A5, detect whether the user has updated the preset on / off state of the Do Not Disturb mode corresponding to the second key information;
[0046] A6. If the user updates the preset on / off state, the updated preset on / off state will be synchronously updated to the mapping relationship list.
[0047] In this implementation, after enabling the Do Not Disturb mode when adding the second key information, if the user wishes to restore the door opening notification push function (i.e., disable the Do Not Disturb mode), the preset on / off state of the Do Not Disturb mode corresponding to the second key information can be updated. For example, if the Do Not Disturb mode of the second key information is set to on when it is first registered, the on state can be updated to off, disabling the Do Not Disturb function. The APP uploads the relevant updated parameters to the cloud, and the cloud synchronously updates the corresponding key information parameters in the mapping relationship list. Subsequently, when the user uses the second key information to unlock the door, they will receive the door opening notification again.
[0048] In one embodiment of this example, finding the preset on / off state of the Do Not Disturb mode that matches the first key information includes:
[0049] B31, Obtain the target key type corresponding to the first key information;
[0050] B32, in the pre-set mapping relationship list between key type and do-not-disturb mode, query the on / off status of the do-not-disturb mode corresponding to the target key type.
[0051] In this implementation, the on / off status of the Do Not Disturb mode corresponding to the first key information is found based on the key type. Users can set the Do Not Disturb mode status individually for each key type according to their preferences and needs, forming a pre-set mapping list of key types and Do Not Disturb modes. When unlocking using the first key information later, the target key type corresponding to the first key information is obtained. Target key types include, but are not limited to, fingerprint, password, or card types. The on / off status of the Do Not Disturb mode corresponding to the target key type is queried from the pre-set mapping list of key types and Do Not Disturb modes. In one example, fingerprint keys are pre-set to have Do Not Disturb mode enabled, while password and card keys are set to have Do Not Disturb mode disabled. Therefore, when unlocking with a fingerprint key, no door opening notification is pushed to the client; when unlocking with a password or card key, a door opening notification is pushed to the client.
[0052] This implementation improves convenience by setting different states of the Do Not Disturb mode for different key types, allowing users to flexibly choose whether to send door opening notifications simply by using different key types to unlock the door.
[0053] In another embodiment of this example, finding the preset on / off state of the Do Not Disturb mode that matches the first key information includes:
[0054] C31, obtain the target key content corresponding to the first key information;
[0055] C31. In the pre-set mapping relationship list between key content and do-not-disturb mode, query the on / off status of the do-not-disturb mode corresponding to the target key content.
[0056] In this implementation, the on / off status of the Do Not Disturb mode corresponding to the first key information is retrieved based on the key content. Users can set the Do Not Disturb mode status individually for specific key content according to their preferences and needs, forming a pre-set mapping list of key content and Do Not Disturb modes. The key content can be different passwords, such as 666 or 888, or different fingerprints, such as thumbprint or index finger fingerprints. When unlocking using the first key information, the target key content corresponding to the first key information is obtained, and the on / off status of the Do Not Disturb mode corresponding to the target key content is queried from the pre-set mapping list. In one example, the thumbprint key is pre-set to enable Do Not Disturb mode, and the index finger key is set to disable Do Not Disturb mode. Therefore, when unlocking using the thumbprint key, no door opening notification is pushed to the client; when unlocking using the index finger key, a door opening notification is pushed to the client.
[0057] In this implementation, users can set different Do Not Disturb modes for each specific key (such as different passwords or fingerprints), providing more granular personalized settings. Even if two users use the same type of key (such as both using fingerprints), they can set different Do Not Disturb modes for their respective key content, thereby improving security.
[0058] In another embodiment of this example, finding the preset on / off state of the Do Not Disturb mode that matches the first key information includes:
[0059] F1, obtain the target user corresponding to the first key information;
[0060] F2 allows you to query the on / off status of the Do Not Disturb mode for the target user in the pre-set mapping list of users and Do Not Disturb modes.
[0061] In this embodiment, the system searches for the on / off state of a user's pre-set Do Not Disturb mode. Users can individually set the Do Not Disturb mode state according to their preferences, schedules, and other needs, and store it in a pre-set mapping list of users and Do Not Disturb modes. When unlocking using the first key information, the system retrieves the target user corresponding to the first key information. This can be done by capturing the user's facial information through a camera and analyzing it to find the target user, or by directly searching for the target user bound to the first key information. The system then queries the pre-set mapping list of users and Do Not Disturb modes to query the on / off state of the Do Not Disturb mode corresponding to the target user. In one example, user A pre-sets their user ID1 to Do Not Disturb mode as on, and user B pre-sets their user ID2 to Do Not Disturb mode as off. Therefore, when unlocking using user ID1's key, no door opening notification will be sent to the client; however, when unlocking using user ID2's key, a door opening notification will be sent to the client.
[0062] In this embodiment, different users can have different Do Not Disturb settings permissions. Through a preset mapping list of users and Do Not Disturb modes, the system can intelligently identify the unlocking requests of different users and decide whether to push notifications accordingly, thus achieving intelligent user identification and management.
[0063] In another embodiment of this example, after obtaining the unlocking data of the current unlocking operation, the method further includes:
[0064] D1, parse the first key information and unlock timestamp of the unlocking data;
[0065] D2, find the preset on / off state of the do-not-disturb mode that matches the first key information, and determine whether the unlock timestamp is within the preset do-not-disturb time period;
[0066] D3, if the preset on / off state of the Do Not Disturb mode is on, and the unlock timestamp is within the preset Do Not Disturb time period, then obtain the end time of the Do Not Disturb time period.
[0067] D4: Real-time detection of the current time; after the current time reaches the termination time, push an opening notification to the client bound to the door lock.
[0068] When a user's unlocking operation is detected, the system obtains the unlocking data of the current unlocking operation, parses the first key information and unlocking timestamp of the unlocking data, searches for the preset on / off state of the Do Not Disturb mode that matches the first key information, and determines whether the unlocking timestamp is within the preset Do Not Disturb time period. If the unlocking timestamp is within the preset Do Not Disturb time period and the preset on / off state of the Do Not Disturb mode is on, the system obtains the end time of the Do Not Disturb time period, monitors the current time in real time, and pushes an opening notification to the client bound to the door lock after the current time reaches the end time. The opening notification includes the first key information and unlocking timestamp, etc.
[0069] In this implementation, by setting a "Do Not Disturb" period, unnecessary door opening notifications can be avoided within a specific time frame, reducing disruption to the user. Users can set their own "Do Not Disturb" period to provide a more personalized user experience. Simultaneously, an automatic push notification is sent after the "Do Not Disturb" period ends, ensuring users don't miss door opening records and improving security.
[0070] In another embodiment of this example, before prohibiting the push of door opening notifications to clients bound to the door lock, the method further includes:
[0071] E1 monitors the frequency of user unlocking operations on the door lock;
[0072] E2, if the unlocking operation frequency exceeds a preset threshold, the preset on / off state of the Do Not Disturb mode is temporarily canceled, allowing push of door opening notifications to clients bound to the door lock.
[0073] In this embodiment, the number of times a user unlocks the door lock is monitored. Optionally, the number of unlocking operations within a certain period (e.g., the last few minutes) is recorded to calculate the unlocking operation frequency. A preset threshold is set as the judgment criterion, and a reasonable threshold can be set according to the actual usage of the door lock and security requirements. It is determined whether the unlocking operation frequency exceeds the preset threshold. If the detected unlocking operation frequency exceeds the preset threshold, the preset on / off state of the Do Not Disturb mode is temporarily canceled. At this time, even if it was originally set to Do Not Disturb mode, it is still possible to push door opening notifications to the client bound to the door lock.
[0074] This implementation dynamically adjusts the preset on / off state of the Do Not Disturb mode by monitoring the frequency of the user's unlocking operations on the door lock, so as to ensure that the user can be notified in time in special circumstances. When the frequency of unlocking operations on the door lock increases abnormally, it may be that the door lock is being maliciously attacked or an emergency has occurred. In this case, temporarily canceling the Do Not Disturb mode can ensure that the user knows the status of the door lock in time, thereby improving security.
[0075] This embodiment provides a specific implementation process for a door opening notification push method, including:
[0076] 1. The APP binds the smart lock to your mobile phone and adds key information in the APP.
[0077] 2. After adding a fingerprint / finger vein, password, or card, a Do Not Disturb option will be added next to it, so that users can choose whether to enable Do Not Disturb mode according to their actual needs. This function is off by default.
[0078] 3. When the customer clicks Do Not Disturb, the APP will upload relevant parameters to the cloud. Parameters: door opening type (fingerprint, password, card, etc.), door opening ID, Do Not Disturb (Y).
[0079] 4. The key information parameters are stored in the cloud.
[0080] 5. When the customer uses the key to open the door, the lock reports the door opening record. The parameters include record ID, door opening type, door opening ID, timestamp, etc. The record ID is the number of the current door opening operation, and the door opening ID is the specific key information used in the current door opening operation.
[0081] 6. When the cloud receives the door opening record, it will query the database for the door opening type and the corresponding Do Not Disturb parameter for the door opening ID. When the Do Not Disturb parameter is enabled (Y), no notification will be pushed.
[0082] 7. When a customer wants to restore the Do Not Disturb function, they can click on the key and turn off the Do Not Disturb function. The APP will upload relevant parameters to the cloud. Parameters: door opening type (fingerprint, password, card, etc.), door opening ID, Do Not Disturb (N).
[0083] 8. The updated key information parameters are saved in the cloud. Users will receive a new notification when they use this key to open the door.
[0084] The door opening notification push method of this embodiment has wide applications in home security, smart buildings, hotel management, and other fields. Firstly, for home users, smart locks have become an important guarantee of home security. This embodiment provides a more convenient and user-friendly do-not-disturb setting, which can greatly improve the user experience. Secondly, in fields such as smart buildings and hotel management, a large number of access control systems need to handle a large number of unlocking requests. This embodiment can automatically identify the do-not-disturb state to avoid sending notifications when unnecessary, thereby improving system efficiency and stability. Furthermore, this embodiment can easily restore the notification function according to user needs, meeting different user requirements, and has broad market demand and good application prospects.
[0085] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0086] Example 2
[0087] This embodiment also provides a door opening notification push device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0088] Figure 3 This is a structural block diagram of a door opening notification push device according to an embodiment of this application, such as... Figure 3 As shown, the device includes:
[0089] The detection module 31 is used to detect the unlocking operation of the door lock;
[0090] The acquisition module 32 is used to acquire the unlocking data of the current unlocking operation when an unlocking operation on the door lock is detected.
[0091] The lookup module 33 is used to parse the first key information of the unlocking data and look up the preset on / off state of the do-not-disturb mode that matches the first key information.
[0092] The push module 34 is used to prevent the push of door opening notifications to the client bound to the door lock if the preset on / off state of the do-not-disturb mode is on.
[0093] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0094] Example 3
[0095] Embodiments of this application also provide a computer storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
[0096] Optionally, in this embodiment, the computer storage medium may be configured to store a computer program for performing the following steps:
[0097] S1, detects the unlocking operation of the door lock;
[0098] S2, when an unlocking operation is detected, obtain the unlocking data of the current unlocking operation;
[0099] S3, parse the first key information of the unlocking data, and find the preset on / off state of the do-not-disturb mode that matches the first key information;
[0100] S4. If the preset on / off state of the Do Not Disturb mode is on, then push door opening notifications to the client bound to the door lock are prohibited.
[0101] Optionally, in this embodiment, the computer storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0102] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0103] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0104] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0105] S1, detects the unlocking operation of the door lock;
[0106] S2, when an unlocking operation is detected, obtain the unlocking data of the current unlocking operation;
[0107] S3, parse the first key information of the unlocking data, and find the preset on / off state of the do-not-disturb mode that matches the first key information;
[0108] S4. If the preset on / off state of the Do Not Disturb mode is on, then push door opening notifications to the client bound to the door lock are prohibited.
[0109] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0110] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0111] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0112] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0113] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0114] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0115] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a computer storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned computer storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0116] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for sending door opening notifications, characterized in that, The method includes: Detect the unlocking operation of the door lock; When an unlocking operation is detected, the unlocking data of the current unlocking operation is obtained; The first key information of the unlocking data is parsed to find the preset on / off state of the do-not-disturb mode that matches the first key information; If the preset on / off state of the Do Not Disturb mode is on, then pushing door opening notifications to the client bound to the door lock is prohibited.
2. The method according to claim 1, characterized in that, The preset on / off states of the Do Not Disturb mode that match the first key information include: Obtain the target key type corresponding to the first key information; In the pre-set mapping list between key types and Do Not Disturb mode, query the on / off status of the Do Not Disturb mode corresponding to the target key type.
3. The method according to claim 1, characterized in that, The preset on / off states of the Do Not Disturb mode that match the first key information include: Obtain the target key content corresponding to the first key information; In the pre-set mapping list between key content and Do Not Disturb mode, query the on / off status of the Do Not Disturb mode corresponding to the target key content.
4. The method according to claim 1, characterized in that, Before searching for the preset on / off state of the Do Not Disturb mode that matches the first key information, the method further includes: When registering key information for the first time, a mode on / off option for Do Not Disturb mode will be added for each newly registered second key information. Obtain the user's selection result for the mode on / off option, and use the selection result as the preset on / off state of the do-not-disturb mode corresponding to the second key information; Generate a mapping relationship between the second key information and the preset on / off state of the Do Not Disturb mode, and save it to the mapping relationship list.
5. The method according to claim 4, characterized in that, After generating the mapping relationship between the second key information and the preset on / off state of the Do Not Disturb mode, and saving it to the mapping relationship list, the method further includes: Detect whether the user has updated the preset on / off state of the Do Not Disturb mode corresponding to the second key information; If the user updates the preset on / off state, the updated preset on / off state will be synchronously updated to the mapping relationship list.
6. The method according to claim 1, characterized in that, After obtaining the unlocking data of the current unlocking operation, the method further includes: Parse the first key information and unlock timestamp of the unlock data; Find the preset on / off state of the do-not-disturb mode that matches the first key information, and determine whether the unlock timestamp is within the preset do-not-disturb time period; If the preset on / off state of the Do Not Disturb mode is on, and the unlock timestamp is within the preset Do Not Disturb time period, then the end time of the Do Not Disturb time period is obtained. The system detects the current time in real time and pushes an opening notification to the client bound to the door lock after the current time reaches the specified termination time.
7. The method according to claim 1, characterized in that, Before disabling push notifications to clients bound to the lock, the method further includes: Monitor the frequency of user unlocking operations on the door lock; If the frequency of unlocking operations exceeds a preset threshold, the preset on / off state of the Do Not Disturb mode will be temporarily canceled, allowing push notifications to the client bound to the lock.
8. The method according to claim 1, characterized in that, The preset on / off states of the Do Not Disturb mode that match the first key information include: Obtain the target user corresponding to the first key information; In the pre-set mapping list of users and Do Not Disturb mode, query the on / off status of the Do Not Disturb mode for the target user.
9. A door lock, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, communication interface, and memory communicate with each other through the communication bus; wherein: Memory, used to store computer programs; A processor for executing the door opening notification push method according to any one of claims 1 to 8 by running a program stored in memory.
10. A computer storage medium, characterized in that, The computer storage medium includes a stored program, wherein the program, when executed, performs the door opening notification push method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Do-not-disturb message transmission method, device and system
CN104254056A
Instant communication message processing method and device
CN105376141A