Door opening notification pushing method, door lock and computer storage medium
By detecting the unlocking operation of the smart door lock and analyzing the key information, dynamically adjusting the non-disturbance mode, the flexibility of the smart door lock opening notification function when the user does not want to be disturbed is solved, and more efficient notification control is achieved, improving the User experience and security.
Patent Information
- Application Number
- CN202411486315.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-08-26
- Filing Date
- 2024-10-23
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2044-10-23
AI Technical Summary
The door notification function of existing smart door locks is difficult to control flexibly when users do not want to be disturbed (such as going home late at night). It requires turning off all notifications or manually disables, and there is a lack of effective solutions.
By detecting the unlocking operation of the door lock, the key information is parsed to find the preset opening and closing state of the non-disturbance mode. If enabled, the push door opening notification is prohibited, providing flexible non-disturbance settings, including the personality of the key type, content and time period. Configure configuration and dynamically adjust push notifications.
Improve the flexibility of door-open notification push, and users can set the non-disturbance mode as needed to avoid unnecessary notifications, enhancing user experience and security.
Smart Images

Figure CN119314246A_ABST
Abstract
Description
[0001] This application claims the priority of domestic application number 202411175870.2. Technical Field
[0002] The present application relates to the technical field of smart door locks, and in particular to a method for pushing door opening notifications, a door lock, and a computer storage medium. Background Art
[0003] With the development of technology, smart door locks have gradually become an indispensable part of daily life due to their convenience and security. As a smart home device, the door opening reminder function of smart door locks is very important. Through the prompts or status information display on the mobile phone application, users can easily grasp the status and operation of the smart door locks.
[0004] Although the door opening notification function in the related art is practical, it may not meet the user's expectations in certain situations. For example, in situations where the user does not want to be disturbed (such as returning home late at night), the user usually needs to turn off all notifications or manually disable the door opening notification in the application, which is contrary to the actual needs of the user and is neither convenient nor flexible.
[0005] With respect to the above-mentioned problems existing in the related technologies, no effective solutions have been found so far. Summary of the invention
[0006] The present application provides a door opening notification push method, a door lock, and a computer storage medium to solve the above-mentioned technical problems existing in the related art.
[0007] According to one embodiment of the present application, a method for pushing door opening notifications is provided, including: detecting an unlocking operation on a door lock; when the unlocking operation on the door lock is detected, obtaining unlocking data of the current unlocking operation; 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; if the preset on / off state of the do not disturb mode is on, prohibiting pushing door opening notifications to a client bound to the door lock.
[0008] According to another embodiment of the present application, a push device for door opening notification is provided, including: a detection module, used to detect an unlocking operation on a door lock; an acquisition module, used to acquire unlocking data of the current unlocking operation when the unlocking operation on the door lock is detected; a search module, used to parse first key information of the unlocking data, and search for a preset on / off state of a do not disturb mode that matches the first key information; a push module, used to prohibit pushing door opening notification to a client 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 obtain 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 preset mapping relationship list between the key type and the do not disturb mode.
[0010] Furthermore, the search module also includes a second acquisition unit, used to obtain the target key content corresponding to the first key information; 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 pre-set mapping relationship list between the key content and the do not disturb mode.
[0011] Furthermore, the push device for the door opening notification also includes an adding module, which is used to add a mode on / off option of the do not disturb mode for each second key information registered for the first time when the key information is registered for the first time; a storage module, which is used to obtain the user's selection result of 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 in a mapping relationship list.
[0012] Furthermore, the push device for the door opening notification also includes a detection module for detecting whether the user updates the preset opening and closing status of the do not disturb mode corresponding to the second key information; and an update module for synchronously updating the updated preset opening and closing status to the mapping relationship list if the user updates the preset opening and closing status.
[0013] Furthermore, the push device for the door opening notification 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 matching the first key information, and judging whether the unlocking timestamp is within the preset do not disturb time period; if the preset on / off state of the do not disturb mode is the on state, 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; 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 push device for the door opening notification also includes a detection module for monitoring the frequency of the user's unlocking operation on the door lock; if the unlocking operation frequency exceeds a preset threshold, the preset opening and closing state of the do not disturb mode is temporarily canceled, allowing the door opening notification to be pushed to the client bound to the door lock.
[0015] According to another embodiment of the present application, a computer storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above-mentioned device embodiments when running.
[0016] According to another embodiment of the present application, there is also provided an electronic device, 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 via the communication bus; wherein: the memory is used to store computer programs; the processor is used to execute the steps in the above method by running the program stored in the memory.
[0017] According to yet another embodiment of the present application, a computer program product comprising instructions is also provided, which enables the computer to execute the steps in the above method when the computer program product is executed on the computer.
[0018] Through the embodiments of the present application, an unlocking operation on a door lock is detected; when an unlocking operation on a door lock is detected, unlocking data of the current unlocking operation is obtained; the first key information of the unlocking data is parsed, and the preset on / off state of the do not disturb mode that matches the first key information is found; if the preset on / off state of the do not disturb mode is on, it is prohibited to push the door opening notification to the client bound to the door lock. When the user wants to open the door at a certain time but does not want to receive a notification, the unlocking operation is performed through specific key information. When it is found that the key information turns on the do not disturb mode, the door opening notification will not be pushed to the client for this door opening. There is no need to close all notifications or manually disable the door opening notification in the application, thereby improving the flexibility of door opening notification push. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0020] Figure 1 This is a hardware structure block diagram of a smart door lock according to an embodiment of the present application;
[0021] Figure 2 This is a flow chart of a method for pushing door opening notification according to an embodiment of the present application;
[0022] Figure 3 It is a structural block diagram of a push device for door opening notification in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order 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 in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] Example 1
[0026] The method embodiment provided in the first embodiment of the present application can be executed in a smart door lock, a mobile phone, a smart door lock, a tablet or a similar computing device. Taking running on a smart door lock as an example, Figure 1 : is a hardware structure block diagram of a smart door lock according to an embodiment of the present application. Figure 1 As shown, the smart door lock may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the above-mentioned smart door lock may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned smart door lock. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0027] The memory 104 can be used to store smart door lock programs, for example, software programs and modules of application software, such as a smart door lock program corresponding to a push method for door opening notification in an embodiment of the present application. The processor 102 executes various functional applications and data processing by running the smart door lock program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the smart door lock 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.
[0028] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the smart door lock. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0029] In this embodiment, a method for pushing a door opening notification is provided. Figure 2 is a flow chart of a method for pushing a door opening notification according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:
[0030] Step S10, detecting an unlocking operation on the door lock;
[0031] In this embodiment, the user can directly enter the key on the input device of the door lock to open the door. The key includes a fingerprint, password or card, etc. It can also be remotely controlled through an APP in a mobile device (such as a mobile phone). The user only needs to enter the corresponding fingerprint or password on the mobile phone to unlock the door.
[0032] Step S20, when an unlocking operation on the door lock is detected, acquiring unlocking data of the current unlocking operation;
[0033] Step S30, parsing the first key information of the unlocking data, and searching for a preset on / off state of the do not disturb mode matching the first key information;
[0034] Step S40: If the preset on / off state of the do not disturb mode is on, it is prohibited to push the door opening notification to the client bound to the door lock.
[0035] In this embodiment, the do not disturb mode for different key information is set separately in advance, and the do not disturb mode can be customized to be turned on or off for different key information. The unlocking operation of the door lock by the user is detected. When the unlocking operation of the door lock by the user is detected, the unlocking data of the current unlocking operation is obtained, the first key information of the unlocking data is parsed, and the preset opening and closing state of the do not disturb mode matching the first key information is found. If the preset opening and closing state of the do not disturb mode is the opening state, it is prohibited to push the door opening notification to the client bound to the door lock. If the preset opening and closing state of the do not disturb mode is the closing state, it is allowed to push the door opening notification to the client bound to the door lock.
[0036] Through the above steps, when the user wants to open the door at a certain time (for example, when the user comes home late and does not want to disturb his family, or simply does not want to be disturbed when opening the door this time), but does not want to receive notifications, the unlocking operation is performed through specific key information. When it is found that the key information turns on the do not disturb mode, the door opening notification will not be pushed to the client this time. There is no need to close all notifications or manually disable the door opening notification in the application, which improves the flexibility of door opening notification push.
[0037] In an implementation manner of this embodiment, before searching for a preset on / off state of the do not disturb mode matching the first key information, the method further includes:
[0038] A1, when registering key information for the first time, a mode on / off option of the do not disturb mode is added for each second key information registered for the first time;
[0039] A2, obtaining the selection result of the user on the mode on / off option, and using 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 in a mapping relationship list.
[0041] In this embodiment, when the key information is added for the first time, the do not disturb mode of the key information is set. This setting process can be set locally in the smart door lock or on a mobile terminal (such as a mobile phone). This embodiment is explained by setting on the mobile phone side. In this embodiment, the second key information is the key information when the mapping relationship list is first added or updated, and the first key information is the key information used when unlocking the door lock.
[0042] The APP binds the smart door lock through the mobile phone, and adds the second key information on the APP side, wherein the second key information includes fingerprints, finger veins, passwords or card information, etc. After adding the second key information, a mode on / off option of the do not disturb mode is added for the second key information, so that the user can choose whether to turn on the do not disturb mode according to actual needs. In this embodiment, the default do not disturb mode is off. Obtain the user's selection result for the mode on / off option. If the user chooses to turn on the do not disturb mode, the preset on / off state of the do not disturb mode corresponding to the second key information is the on state, and a mapping relationship between the second key information and the do not disturb mode is generated and saved in the mapping relationship list; if the user chooses to turn off the do not disturb mode, the preset on / off state of the do not disturb mode corresponding to the second key information is the off state, and a mapping relationship between the second key information and the do not disturb mode is generated and saved in the mapping relationship list.
[0043] In this embodiment, the process of setting the do not disturb mode through the APP is intuitive and simple. The user only needs to check or uncheck the corresponding option when adding the key information. The relevant parameters are uploaded and saved in the mapping relationship table in the cloud, so that when the user uses the key information to unlock the door later, the do not disturb mode preset by the key information can be found in the mapping relationship table stored in the cloud. When the do not disturb mode is turned on, it is forbidden to push the door opening notification to the client bound to the door lock.
[0044] In this implementation manner, after generating a mapping relationship between the second key information and the preset on / off state of the do not disturb mode and saving it in a mapping relationship list, the method further includes:
[0045] A5, detecting whether the user updates 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 opening and closing status, the updated preset opening and closing status is synchronously updated to the mapping relationship list.
[0047] In this embodiment, after setting the do not disturb mode on when adding the second key information, if the user wishes to restore the door opening notification push function, that is, to turn off 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, when the second key information is first registered, the do not disturb mode of the second key information is set to the on state, the on state can be updated to the off state, the do not disturb function is turned off, and 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. When the user subsequently uses the second key information to unlock the door, he will receive the door opening notification again.
[0048] In one implementation of this embodiment, searching for a preset on / off state of the do not disturb mode that matches the first key information includes:
[0049] B31, obtaining a target key type corresponding to the first key information;
[0050] B32: In a preset mapping relationship list between key types and do not disturb modes, query the on / off status of the do not disturb mode corresponding to the target key type.
[0051] In this embodiment, the on / off state of the do not disturb mode corresponding to the first key information is searched based on the key type. The user can set the state of the do not disturb mode for each type of key according to his or her preferences and needs, and form a pre-set mapping relationship list between the key type and the do not disturb mode. When the first key information is subsequently used to unlock the door, the target key type corresponding to the first key information is obtained, and the target key type includes but is not limited to fingerprint type, password type or card type. In the pre-set mapping relationship list between the key type and the do not disturb mode, the on / off state of the do not disturb mode corresponding to the target key type is queried. In an example, the fingerprint key is set to turn on the do not disturb mode in advance, and the password and card keys are set to turn off the do not disturb mode. When the fingerprint key is used to unlock the door, the door opening notification will not be pushed to the client, and when the password or card key is used to unlock the door, the door opening notification will be pushed to the client.
[0052] This implementation method sets different states of the do not disturb mode for different key types. You only need to use different types of keys to unlock the door to flexibly choose whether to push the door opening notification, thereby improving convenience.
[0053] In another implementation of this embodiment, searching for a preset on / off state of the do not disturb mode that matches the first key information includes:
[0054] C31, obtaining target key content corresponding to the first key information;
[0055] C31: In a preset mapping relationship list between key content and do not disturb mode, query the on / off state of the do not disturb mode corresponding to the target key content.
[0056] In this embodiment, the on / off state of the do not disturb mode corresponding to the first key information is searched based on the key content. The user can set the state of the do not disturb mode for the specific key content according to his / her preferences and needs, and form a mapping relationship list of pre-set key content and do not disturb mode, wherein the key content can be different passwords, such as password 666, password 888, or different fingerprints, such as thumb fingerprint, index finger fingerprint, etc. When the first key information is subsequently used to unlock, the target key content corresponding to the first key information is obtained, and the on / off state of the do not disturb mode corresponding to the target key content is queried in the mapping relationship list of pre-set key content and do not disturb mode. In one example, the key of the thumb fingerprint is set to turn on the do not disturb mode in advance, and the key of the index finger fingerprint is set to turn off the do not disturb mode. When the key of the thumb fingerprint is used to unlock, the door opening notification will not be pushed to the client, and when the key of the index finger fingerprint is used to unlock, the door opening notification will be pushed to the client.
[0057] In this embodiment, the user can set a different Do Not Disturb mode for each specific key content (such as different passwords or fingerprints), providing more detailed personalized settings. Even if two users use the same type of key (such as fingerprints), they can set different Do Not Disturb modes for their respective key content, thereby improving security.
[0058] In another implementation of this embodiment, searching for a preset on / off state of the do not disturb mode that matches the first key information includes:
[0059] F1, obtaining the target user corresponding to the first key information;
[0060] F2: In a preset mapping relationship list between users and do not disturb modes, query the on / off status of the do not disturb mode corresponding to the target user.
[0061] In this embodiment, the on / off state of the pre-set do not disturb mode of a specific user is searched. The user can set the state of the do not disturb mode individually according to his / her preferences, work and rest, etc., and store it in the pre-set mapping relationship list of users and do not disturb modes. When the first key information is subsequently used to unlock the door, the target user corresponding to the first key information is obtained, wherein the facial information of the unlocking user can be collected by the camera, and the target user corresponding to the facial information can be analyzed and searched, or the target user bound to the first key information can be directly searched; in the pre-set mapping relationship list of users and do not disturb modes, the on / off state of the do not disturb mode corresponding to the target user is queried. In an example, user a sets the do not disturb mode of its user id1 to the on state in advance, and user b sets the do not disturb mode of its user id2 to the off state in advance. When the key of user id1 is used to unlock the door, the door opening notification will not be pushed to the client, and when the key of user id2 is used to unlock the door, the door opening notification will be pushed to the client.
[0062] In this embodiment, different users can have different do not disturb setting permissions. Through the preset mapping relationship list between users and do not disturb modes, it can intelligently identify the unlocking requests of different users and decide whether to push notifications accordingly, thereby realizing intelligent user identification and management.
[0063] In another implementation of this embodiment, after acquiring the unlocking data of the current unlocking operation, the method further includes:
[0064] D1, parsing the first key information and unlocking timestamp of the unlocking data;
[0065] D2, searching for a preset on / off state of the do not disturb mode that matches the first key information, and determining whether the unlocking timestamp is within a preset do not disturb time period;
[0066] D3, if the preset on / off state of the do not disturb mode is the on state, 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;
[0067] D4, real-time detection of the current time, after the current time reaches the end time, pushes a door opening notification to the client bound to the door lock.
[0068] When an unlocking operation of the door lock by the user is detected, the unlocking data of the current unlocking operation is obtained, the first key information and the unlocking timestamp of the unlocking data are parsed, the preset on / off state of the do not disturb mode matching the first key information is found, and it is determined 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 end time of the do not disturb time period is obtained, the current time is detected in real time, and after the current time reaches the end time, a door opening notification is pushed to the client bound to the door lock, and the door opening notification includes information such as the first key information and the unlocking timestamp.
[0069] In this embodiment, by setting the do not disturb time period, unnecessary door opening notifications can be avoided during a specific period, reducing interference to the user. The user can set the do not disturb time period according to their needs to provide a more personalized user experience. At the same time, after the do not disturb time period ends, the notification is automatically pushed to prevent the user from missing the door opening record, thereby improving safety.
[0070] In another implementation of this embodiment, before prohibiting the push of door opening notification to the client bound to the door lock, the method further includes:
[0071] E1, monitors the frequency of unlocking operations of the door lock by the user;
[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, and the door opening notification is allowed to be pushed to the client bound to the door lock.
[0073] In this embodiment, the number of unlocking operations performed by the user on the door lock is monitored, and optionally, the number of unlocking operations within a period of time (such as the last few minutes) is recorded to calculate the unlocking operation frequency. A preset threshold is set as a judgment standard, and a reasonable threshold can be set according to the actual use of the door lock and security requirements. It is determined whether the unlocking operation frequency exceeds the preset threshold. If the monitored 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 in the state originally set to the do not disturb mode, it is allowed to push the door opening notification to the client bound to the door lock.
[0074] This implementation dynamically adjusts the preset on / off status of the do not disturb mode by monitoring the frequency of the user's unlocking operation on the door lock to ensure that the user can be notified in time under special circumstances. When the unlocking operation frequency of the door lock increases abnormally, it may be that the door lock is subject to malicious attempts or an emergency situation. At this time, temporarily canceling the do not disturb mode can ensure that the user is aware of the status of the door lock in time, thereby improving safety.
[0075] The solution of this embodiment provides a specific implementation process of a method for pushing a door opening notification, including:
[0076] 1. APP binds the smart lock through the mobile phone and adds key information on the APP.
[0077] 2. After adding a fingerprint / finger vein, password or card, a do not disturb option is added at the back, so that users can choose whether to turn on the do not disturb mode according to actual needs. This function is turned off by default.
[0078] 3. When the customer clicks on Do Not Disturb, the APP will upload relevant parameters to the cloud, including: door opening type (fingerprint, password, card, etc.), door opening ID, and Do Not Disturb (Y).
[0079] 4. The key information parameters are saved in the cloud.
[0080] 5. The customer uses the key to open the door, and the lock reports the door opening record. The parameters include record ID, door opening type, door opening ID, timestamp, etc. Among them, the record ID is the number of the current door opening operation, and the door opening ID is the specific key information used for the current door opening operation.
[0081] 6. When the cloud receives the door opening record, it will go to the database to query the door opening type and the do not disturb parameter corresponding to the door opening ID. When the do not disturb parameter is turned on Y, no notification will be pushed at this time.
[0082] 7. When the customer wants to restore the do not disturb function, click the key and turn off the do not disturb function. The APP will upload relevant parameters to the cloud, including: door opening type (fingerprint, password, card, etc.), door opening ID, and do not disturb (N).
[0083] 8. The cloud saves the updated key information parameters. When the user uses the key to open the door, he will receive a notification again.
[0084] The push method of the door opening notification of this embodiment can be widely used in application fields such as home security, smart buildings, and hotel management. First of all, for home users, smart locks have become an important guarantee for home security. This embodiment provides a more convenient and user-friendly do not disturb setting method, which can greatly improve the user experience. Secondly, for fields such as smart buildings and hotel management, a large number of access control systems need to process a large number of unlocking requests. This embodiment can automatically identify the do not disturb state and avoid sending notifications when they are not needed, thereby improving the efficiency and stability of the system. In addition, this embodiment can also conveniently restore the notification function according to the needs of the user to meet the different needs of the user, and has broad market demand and good application prospects.
[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0086] Example 2
[0087] In this embodiment, a push device for door opening notification is also provided to implement the above-mentioned embodiments and preferred implementation modes, which have been described and will not be repeated. As used below, the term "module" can be 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, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0088] Figure 3 is a structural block diagram of a push device for door opening notification according to an embodiment of the present application, such as Figure 3 As shown, the device comprises:
[0089] A detection module 31, used to detect an unlocking operation on a 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] A search module 33, configured to parse the first key information of the unlocking data, and search for a preset on / off state of the do not disturb mode matching the first key information;
[0092] The push module 34 is used to prohibit pushing the door opening notification 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, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0094] Example 3
[0095] An embodiment of the present application further provides a computer storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of 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, detecting the unlocking operation of the door lock;
[0098] S2, when an unlocking operation on the door lock is detected, obtaining unlocking data of the current unlocking operation;
[0099] S3, parsing the first key information of the unlocking data, and searching for a preset on / off state of the do not disturb mode matching the first key information;
[0100] S4: If the preset on / off state of the do not disturb mode is on, it is prohibited to push the door opening notification to the client bound to the door lock.
[0101] Optionally, in this embodiment, the above-mentioned computer storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0102] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one 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 may be configured to perform the following steps through a computer program:
[0105] S1, detecting the unlocking operation of the door lock;
[0106] S2, when an unlocking operation on the door lock is detected, obtaining unlocking data of the current unlocking operation;
[0107] S3, parsing the first key information of the unlocking data, and searching for a preset on / off state of the do not disturb mode matching the first key information;
[0108] S4: If the preset on / off state of the do not disturb mode is on, it is prohibited to push the door opening notification to the client bound to the door lock.
[0109] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0110] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0111] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description 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. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0113] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0114] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0115] If the integrated unit is implemented in the form of 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 the present application is essentially 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, and the computer software product is stored in a computer storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned computer storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0116] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for pushing door opening notification, characterized in that: The method comprises: Detecting unlocking operation of door lock; When an unlocking operation on the door lock is detected, the unlocking data of the current unlocking operation is obtained; Parsing the first key information of the unlocking data, and searching for a preset on / off state of the do not disturb mode matching the first key information; If the preset on / off state of the do not disturb mode is on, it is prohibited to push the door opening notification to the client bound to the door lock.
2. The method according to claim 1, characterized in that Searching for a preset on / off state of the do not disturb mode that matches the first key information includes: Obtaining a target key type corresponding to the first key information; In the preset mapping relationship list between the key type and the 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 Searching for a preset on / off state of the do not disturb mode that matches the first key information includes: Obtaining target key content corresponding to the first key information; In the preset 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.
4. The method according to claim 1, characterized in that: Before searching for a 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 of the do not disturb mode is added for each second key information registered for the first time; Obtaining a selection result of the user on or off the mode option, and using the selection result as a preset on or off state of the do not disturb mode corresponding to the second key information; A mapping relationship between the second key information and the preset on / off state of the do not disturb mode is generated and saved in a mapping relationship list.
5. The method according to claim 4, characterized in that After generating a mapping relationship between the second key information and the preset on / off state of the do not disturb mode and saving it in a mapping relationship list, the method further includes: Detecting whether the user updates the preset on / off state of the do not disturb mode corresponding to the second key information; If the user updates the preset opening and closing status, the updated preset opening and closing status is synchronously updated to the mapping relationship list.
6. The method according to claim 1, characterized in that After acquiring the unlocking data of the current unlocking operation, the method further includes: Parsing the first key information and unlocking timestamp of the unlocking data; Searching for a preset on / off state of the do not disturb mode that matches the first key information, and determining 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 the on state, and the unlocking timestamp is within the preset do not disturb time period, then the end time of the do not disturb time period is obtained; The current time is detected in real time, and after the current time reaches the end time, a door opening notification is pushed to the client bound to the door lock.
7. The method according to claim 1, characterized in that Before prohibiting the push of door opening notification to the client bound to the door lock, the method further includes: Monitor the frequency of users unlocking door locks; If the unlocking operation frequency exceeds a preset threshold, the preset on / off state of the do not disturb mode is temporarily canceled, allowing the door opening notification to be pushed to the client bound to the door lock.
8. The method according to claim 1, characterized in that Searching for a preset on / off state of the do not disturb mode that matches the first key information includes: Obtaining a target user corresponding to the first key information; In the preset mapping relationship list between users and do not disturb modes, query the on / off status of the do not disturb mode corresponding to 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, the communication interface and the memory communicate with each other through the communication bus; wherein: Memory, used to store computer programs; A processor, configured to execute the door opening notification push method according to any one of claims 1 to 8 by running a program stored in a memory.
10. A computer storage medium, characterized in that: The computer storage medium includes a stored program, wherein the method for pushing door opening notification according to any one of claims 1 to 8 is executed when the program is run.
Citation Information
Patent Citations
Do-not-disturb message transmission method, device and system
CN104254056A
Instant communication message processing method and device
CN105376141A
Message receiving no-disturbing processing method and device applied to smart home equipment
CN117879984A
Smart doorbell
US20200402374A1
Intelligent door lock control method, related device and system
US20210256784A1