CN117079372B - Intelligent door lock control method, computer equipment and readable storage medium - Google Patents

Intelligent door lock control method, computer equipment and readable storage medium Download PDF

Info

Publication number
CN117079372B
CN117079372B CN202311337912.3A CN202311337912A CN117079372B CN 117079372 B CN117079372 B CN 117079372B CN 202311337912 A CN202311337912 A CN 202311337912A CN 117079372 B CN117079372 B CN 117079372B
Authority
CN
China
Prior art keywords
door lock
intelligent door
sleep
terminal
wifi module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311337912.3A
Other languages
Chinese (zh)
Other versions
CN117079372A (en
Inventor
冷优军
李辉
穆允翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Qiming Cloud Technology Co ltd
Original Assignee
Shenzhen Qiming Cloud Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Qiming Cloud Technology Co ltd filed Critical Shenzhen Qiming Cloud Technology Co ltd
Priority to CN202311337912.3A priority Critical patent/CN117079372B/en
Publication of CN117079372A publication Critical patent/CN117079372A/en
Application granted granted Critical
Publication of CN117079372B publication Critical patent/CN117079372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C2009/00634Power supply for the lock
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C2009/00634Power supply for the lock
    • G07C2009/00642Power supply for the lock by battery
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application is applicable to the technical field of the Internet of things, and provides an intelligent door lock control method, computer equipment and a readable storage medium, wherein the intelligent door lock control method comprises the following steps: if sleep notification information sent by the intelligent door lock terminal is received, acquiring sleep starting time and sleep period of a WIFI module of the intelligent door lock terminal from the sleep notification information; under the condition that the intelligent door lock terminal is in a sleep mode, if a remote control instruction sent by the user terminal is received, determining the subsequent wake-up time of the WIFI module according to the sleep start time and the sleep period of the WIFI module of the intelligent door lock terminal; and issuing a remote control instruction to the intelligent door lock terminal in a set time before the subsequent wake-up time of the WIFI module. The scheme not only improves the energy consumption condition of the intelligent door lock terminal with the WIFI module, but also can ensure the smooth realization of remote control; the sending mechanism of the intelligent door lock management server to the remote control instruction can reduce the loss probability of the remote control instruction and save network resources.

Description

Intelligent door lock control method, computer equipment and readable storage medium
Technical Field
The application belongs to the technical field of the Internet of things, and particularly relates to an intelligent door lock control method, computer equipment and a readable storage medium.
Background
The concept of the intelligent door lock has been popular a few years ago, and with further maturation of internet technology and gradual popularization of 5G advanced communication technology, internet of things equipment is more and more favored by people because of convenient and rapid use experience, so that the intelligent door lock technology has also been developed rapidly. The intelligent door lock is different from the traditional mechanical lock, is a composite lock with safety, convenience and advancement, but the realization of the functions requires power consumption, so how to reduce the energy consumption is a hot subject in the field of intelligent door locks.
At present, the popular intelligent door locks on the market can adopt communication technologies such as short-range Bluetooth or Bluetooth gateways, but the intelligent door locks adopting the short-range Bluetooth communication technologies cannot realize remote unlocking, and the Bluetooth gateway communication technologies are adopted, so that additional cost is required to be increased to configure the Bluetooth gateways; therefore, many users can use the intelligent door lock with the WIFI module, but in order to ensure that the intelligent door lock terminal can timely receive a remote control instruction input by the user terminal, the WIFI communication module needs to be opened all the time, and the energy consumption burden of the intelligent door lock terminal is increased; however, if the WIFI module sleeps, the remote control command sent during the sleep period cannot be executed.
Therefore, the existing intelligent door lock terminal with the WIFI module cannot better achieve smooth execution of energy conservation and remote control instructions.
Disclosure of Invention
The embodiment of the application provides an intelligent door lock control method, computer equipment and a readable storage medium, and aims to solve the problem that an existing intelligent door lock terminal with a WIFI module cannot achieve both remote unlocking and energy saving.
The embodiment of the application is realized in such a way that an intelligent door lock control method is applied to an intelligent door lock management server and comprises the following steps:
if the sleep notification information sent by the intelligent door lock terminal is received, acquiring the sleep starting time and the sleep period of the WIFI module of the intelligent door lock terminal from the sleep notification information;
if a remote control instruction sent by a user terminal is received under the condition that the intelligent door lock terminal is in a sleep mode, determining the subsequent wake-up time of a WIFI module according to the sleep start time and the sleep period of the WIFI module of the intelligent door lock terminal;
issuing the remote control instruction to the intelligent door lock terminal in a set time before the subsequent wake-up time of the WIFI module;
The intelligent door lock terminal is provided with a WIFI module, and when the duration of the intelligent door lock terminal in an idle state exceeds a preset duration, the intelligent door lock terminal starts a sleep mode until a wake-up event occurs; in the sleep mode, the WIFI module performs periodic sleep and wake-up according to a sleep period configured by a preset sleep strategy, and if a remote control instruction issued by the intelligent door lock management server is received during wake-up, the intelligent door lock terminal ends the sleep mode and receives and executes the remote control instruction.
As an embodiment of the present application, there is further provided an intelligent door lock control method applied to an intelligent door lock terminal, where the intelligent door lock terminal includes a WIFI module, and the intelligent door lock control method includes:
when the idle state duration of the intelligent door lock terminal exceeds a preset duration, sending dormancy notification information to an intelligent door lock management server, and starting a dormancy mode until a wakeup event occurs; the sleep notification information comprises sleep starting time and sleep period of a WIFI module of the intelligent door lock terminal, and is used for determining subsequent wake-up time of the WIFI module when the intelligent door lock management server receives a remote control instruction sent by the user terminal, so that the intelligent door lock management server can send the remote control instruction within a set time before the subsequent wake-up time of the WIFI module;
During the sleep mode, the WIFI module performs periodic sleep and wake-up according to a sleep period configured by a preset sleep strategy; the preset dormancy strategy is updated by the intelligent door lock management server to the intelligent door lock terminal;
and in the wake-up period of the WIFI module, if a remote control instruction issued by the intelligent door lock management server is received, the intelligent door lock terminal ends the sleep mode, and the remote control instruction is received and executed.
As one embodiment of the present application, there is also provided a computer device, where the computer device includes a memory, and a processor, where the memory stores a computer program that can be executed by the processor, and the processor implements the intelligent door lock control method when executing the computer program.
As one embodiment of the present application, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the intelligent door lock control method.
In the above embodiment of the present application, when the intelligent door lock terminal sleeps, the user terminal sends the remote control instruction, and then the intelligent door lock management server determines the wake-up time of the intelligent door lock terminal in the periodic sleep according to the sleep condition of the WIFI module of the intelligent door lock terminal, so as to determine the sending time of the remote control instruction matched with the wake-up time, so that the remote control instruction can be immediately received by the intelligent door lock terminal, and further wake up the intelligent door lock terminal and execute the remote control instruction; according to the embodiment, the energy consumption condition of the intelligent door lock terminal with the WIFI module is improved, and meanwhile smooth realization of remote control can be guaranteed. In addition, the sending mechanism of the intelligent door lock management server to the remote control instruction can reduce the probability of losing the remote control instruction and save the network resources of the system.
Drawings
Fig. 1 is an implementation environment diagram of an intelligent door lock control system provided in an embodiment of the present application;
fig. 2 is a flowchart of a method for controlling an intelligent door lock according to a first embodiment of the present application;
fig. 3 is a flowchart of a method for controlling an intelligent door lock according to a third embodiment of the present application;
fig. 4 is a flowchart of a method for controlling an intelligent door lock according to a fourth embodiment of the present application;
fig. 5 is a flowchart of a method for controlling an intelligent door lock according to a fifth embodiment of the present application;
fig. 6 is a flowchart of a method for controlling an intelligent door lock according to a sixth embodiment of the present application;
fig. 7 is an internal structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to comply with the related laws and regulations and standards of the related countries and regions.
Fig. 1 shows an implementation environment diagram of an intelligent door lock control system provided in an embodiment of the present application, and for convenience of explanation, only a portion relevant to the embodiment of the present application is shown.
In one embodiment of the present application, the communication entities mainly include the intelligent door lock terminal 110, the wireless routing device 140, the intelligent door lock management server 120, the user terminal 130, and the like. The intelligent door lock terminal 110 is provided with a WIFI module, and the WIFI module can be associated with the wireless routing device 140 in the environment, and communicate with the intelligent door lock management server 120 through the wireless routing device 140, and the user terminal 130 also communicates with the intelligent door lock management server 120 when executing remote control, and issues a remote control instruction to the intelligent door lock terminal 110 through the intelligent door lock management server 120, so that remote control is realized.
The intelligent door lock management server 120 and the intelligent door lock terminal 110 in the embodiment of the present application are core devices of the system. Regarding the intelligent door lock terminal 110, in terms of software, it may configure the relevant operating system and services to support intelligent door lock terminal program operations. In terms of structure, the intelligent door lock terminal 110 in this embodiment includes, in addition to a control module (at least including a processor and a memory), a WIFI module, related peripherals, such as an image acquisition module (i.e., a camera), a radio frequency module, a sensor, an audio module (which may include an audio acquisition and/or output module), a video display module, a password keyboard, a fingerprint recognition module, and a face recognition module; besides, the communication module may further configure a bluetooth communication module, a wired network interface, etc. besides the WIFI module, and the communication module is specifically configured according to actual needs, which is not limited herein.
It will be appreciated that the intelligent door lock terminal 110 further includes a power module, and in order to ensure that the intelligent door lock terminal 110 is not affected by the power outage of the power grid, the power module employs a replaceable battery.
In addition, in order to ensure that the intelligent door opening and closing function of the intelligent door lock terminal 110 fails accidentally, a mechanical unlocking structure may be further configured to unlock by a physical key.
The intelligent door lock management server 120 is generally configured with an operating system for running a server program, a computer or a computer cluster with an environment and a service for running a server, and may be an independent physical server or a terminal, or a server cluster formed by a plurality of physical servers, or may be a cloud server for providing basic cloud computing services such as a cloud server, a cloud database, a cloud storage, a CDN, and the like.
The wireless routing device 140 is commonly called a router or WIFI hotspot, and serves as a communication transfer station between the intelligent door lock terminal 110 and the intelligent door lock management server 120. The wireless routing device 140 communicates with the intelligent door lock terminal 110 through the WIFI wireless network, and simultaneously can communicate with the external network through an external network interface thereof, so that the intelligent door lock terminal 110 can communicate with the intelligent door lock management server 120, and can also buffer related communication data.
The user terminal 130 is configured with a user terminal program, the user terminal may perform network communication with the intelligent door lock management server 120, and an application program interface corresponding to the user terminal program on the user terminal 130 may input a remote control operation for the intelligent door lock terminal, which generates a corresponding remote control instruction on the user terminal, and transmits the corresponding remote control instruction to the intelligent door lock terminal 110 through the intelligent door lock management server 120 (via a wireless routing device), thereby implementing remote control. The user terminal 130 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc.
Fig. 2 is a flowchart of an intelligent door lock control method according to a first embodiment of the present application, where the intelligent door lock control method is applied to the intelligent door lock management server 120, and is described in detail as follows:
step S201, if sleep notification information sent by the intelligent door lock terminal is received, a sleep start time and a sleep period of a WIFI module of the intelligent door lock terminal are obtained from the sleep notification information.
Step S202, if a remote control instruction sent by a user terminal is received while the intelligent door lock terminal is in a sleep mode, determining a subsequent wake-up time of the WIFI module according to a sleep start time and a sleep period of the WIFI module of the intelligent door lock terminal.
And step 203, issuing the remote control instruction to the intelligent door lock terminal in a set time before the subsequent wake-up time of the WIFI module.
The intelligent door lock terminal is provided with a WIFI module, and when the duration of the intelligent door lock terminal in an idle state exceeds a preset duration, the intelligent door lock terminal starts a sleep mode until a wake-up event occurs; in the sleep mode, the WIFI module performs periodic sleep and wake-up according to a sleep period configured by a preset sleep strategy, and if a remote control instruction issued by the intelligent door lock management server is received during wake-up, the intelligent door lock terminal ends the sleep mode and receives and executes the remote control instruction.
In this embodiment, the wake-up event refers to interaction information, activity/task arrangement, and execution requirements triggered by peripheral devices of the intelligent door lock terminal, a communication module, and the like, so that the intelligent door lock terminal wakes up to perform task execution activities preset by a program. For example, a door opening request input by a user through a peripheral device; specifically, for example, when a user inputs data through a password keyboard, a password unlocking event is generated, and then the intelligent door lock terminal is awakened and needs to be analyzed and processed according to a program preset rule. For another example, the user sends a remote control command, i.e. a remote control event, through the user terminal, which wakes up the intelligent door lock terminal and makes a reaction preset by the program rule to the remote control command. In addition, the wake-up event may also be a data update task initiated by the intelligent door lock management server.
In this embodiment, the intelligent door lock terminal being in an idle state means that no related task is currently to be executed, neither the external device nor the communication module triggers any door lock activity request/task execution request, if the state duration exceeds a set duration, such as 30 seconds, 1 minute, 2 minutes, etc., the set duration is not specifically limited, and the set duration can be preset by a system factory, or a user can manually set on the user terminal according to an actual use condition.
In this embodiment, before dormancy, the intelligent door lock terminal uploads a dormancy notification message, where the dormancy notification message includes a dormancy start time and a dormancy period of the WIFI module of the intelligent door lock terminal, and the intelligent door lock management server may read and store the dormancy notification message according to a preset communication protocol, and may mark the state of the intelligent door lock terminal as "dormancy".
In this embodiment, the sleep period of the WIFI module of the smart door lock terminal may be long or short, when the sleep period of the WIFI module is long, downlink data of the smart management server often needs to be cached on the wireless routing device for a long time to wait for wakeup of the WIFI module, which not only increases the cache pressure of the wireless routing device, but also causes a data loss condition when the cache time is too long, thereby causing loss of a remote control instruction and failure of remote unlocking. In this embodiment, if the intelligent door lock management server receives the remote control instruction sent by the user terminal, if the intelligent door lock terminal is marked as in the sleep state, the intelligent door lock management server does not immediately issue the remote control instruction, but calculates the subsequent wake-up time of the WIFI module, and selects a suitable issue opportunity (generally, the next wake-up time after the current time) according to the wake-up time, so that data can be timely sent to the intelligent door lock terminal through the wireless routing device, thereby not only reducing the buffering burden of the wireless routing device, but also reducing the risk of losing the remote control instruction.
In one case of this embodiment, after the sleep start time and the sleep period of the WIFI module are obtained, the subsequent wake-up time of the WIFI module from the current time can be easily obtained, so that a remote control instruction can be sent to the intelligent door lock terminal within a set time before the wake-up time of the WIFI module. The setting time generally needs to consider the related delay time, and the subsequent wake-up time of the WIFI module is corrected on the basis of the setting time, so that a proper remote control instruction sending time can be obtained, the remote control instruction can be received in time when the subsequent wake-up time of the WIFI module (the next wake-up time of the current time generally) is convenient, the remote control instruction is prevented from being cached to the next wake-up time of the WIFI module, if the sleep period of the WIFI module is longer, the method of the embodiment can effectively avoid the loss of the remote control instruction, further avoid the starting of a retransmission mechanism, reduce the waste of system resources, and avoid the lengthening of the interval from the instruction sending to the execution of the remote control instruction.
The delay time can consider delay data such as transmission delay, system delay, software delay, algorithm delay and the like generated in the downlink data transmission process, then the subsequent wake-up time of the WIFI module is corrected according to the delay data to obtain the time for issuing the remote control instruction, the correction effect of the time for issuing the remote control instruction is required to be satisfied, the remote control instruction can reach the wireless routing equipment before the wake-up time of the WIFI module of the intelligent door lock terminal, and the preparation time for data forwarding is reserved for the wireless routing equipment, so that the remote control instruction can be received immediately when the WIFI module wakes up.
In one case of the present embodiment, the delay time is generally a statistically significant average time due to various errors of the system.
Through the above-mentioned embodiment of this application, when intelligent lock terminal dormancy, user terminal has sent remote control instruction, and then intelligent lock management server can confirm an accurate, instant remote control instruction according to the dormancy condition of its WIFI module and issue the opportunity for this remote control instruction can be received by intelligent lock terminal in real time, with awakening intelligent lock terminal and carrying out remote control instruction, not only improved the energy consumption condition of intelligent lock terminal of taking the WIFI module, also can guarantee remote control's smooth realization simultaneously. In addition, in the condition that the sleep period of the WIFI module is longer, the intelligent door lock management server can ensure that the remote control instruction can be received in time according to the mode that the instruction issuing time is determined according to the wake-up time in the sleep period of the WIFI module of the intelligent door lock terminal, and the probability of losing the remote control instruction can be reduced and system network resources can be saved based on the sending mechanism of the intelligent door lock management server to the remote control instruction.
As a second embodiment of the present application, the intelligent door lock terminal communicates with the intelligent door lock management server through an associated wireless routing device; the preset dormancy strategy at least comprises the following steps: the first dormancy strategy and the second dormancy strategy.
When the intelligent door lock terminal is configured to be in the first dormancy strategy, the processor and the peripheral of the intelligent door lock terminal are suspended to run and enter dormancy, and the WIFI module enters dormancy; setting an external interrupt interface capable of being triggered locally as a monitoring state; meanwhile, when a processor of the intelligent door lock terminal is dormant, the processor is awakened at regular time through an external real-time clock, and then the WIFI module is awakened synchronously; the sleep period of the processor of the intelligent door lock terminal and the WIFI module is set to be N (N > 2) times of the sending time interval of the DTIM frame in the Beacon message of the wireless routing equipment.
As a preferred embodiment of the present application, when the intelligent door lock terminal is configured as the first sleep policy, the locally triggerable external interrupt interface may monitor wake events, such as activities of the peripheral or activities of special wake keys (applicable to the case of complete shutdown of other functional peripheral), so as to wake the intelligent door lock terminal in time when the peripheral is triggered. When the processor of the intelligent door lock terminal pauses, the WIFI Modem circuit of the WIFI module is synchronously closed to save electricity, meanwhile, the processor of the intelligent door lock terminal wakes up through an external real-time clock RTC at fixed time, and then synchronously starts the WIFI Modem circuit, so that the WIFI module wakes up for a short time (namely, the wake-up duration of each sleep period of the WIFI module can be generally set to be 3 ms) to receive the Beacon message of the wireless routing device.
In this embodiment, the processor of the intelligent door lock terminal does not respond to the signal from the peripheral interface and the terminal in the suspended state; and setting an external interrupt interface to monitor the activity of the peripheral so as to wake up the intelligent door lock terminal in time when the peripheral is triggered. Specifically, an external interrupt interface EXTI (Extern Interrupt) may be set to monitor a level signal of a GPIO (General-purpose input/output interface) port connected to the peripheral device; if the peripheral is triggered, an external interrupt can be generated to the intelligent door lock terminal through the GPIO port, so that the local wake-up of the intelligent door lock terminal is realized.
As another preferred embodiment of the present application, when the intelligent door lock terminal is configured as the second sleep policy, peripheral devices of the intelligent door lock terminal suspend operation, a processor and a WIFI module of the intelligent door lock terminal are powered off and sleep, and an external reset interface that can be triggered locally is set to be in a listening state; the processor of the intelligent door lock terminal wakes up at regular time through an external real-time clock when in sleep, so as to wake up the WIFI module; the sleep period of the processor of the intelligent door lock terminal and the WIFI module is set to be N (N > 2) times of the sending time interval of the DTIM frame in the Beacon message of the wireless routing equipment.
In this embodiment, whether the peripheral or a special wake-up key (applicable to the situation that the peripheral with other functions is completely shut down) is triggered can be monitored through the external reset interface, so as to realize the local wake-up of the intelligent door lock terminal. Before entering into dormancy, the intelligent door lock terminal is set to a monitoring mode through an external reset interface so as to monitor a wake-up event, the intelligent door lock terminal can be used for local wake-up, and when an external reset interface trigger signal is sent, a processor of the intelligent door lock terminal is awakened in a reset mode. It can be appreciated that under the second sleep strategy, the processor and the WIFI module of the intelligent door lock terminal directly stop running in a power-off mode, so that energy can be saved compared with the first sleep strategy. When the wireless router is dormant, a real-time clock RTC of the intelligent door lock terminal is in a working state, the real-time clock RTC can wake up a processor of the intelligent door lock terminal periodically, the processor of the intelligent door lock terminal further controls the WIFI module to be opened, so that the WIFI module wakes up for a short time (namely, the wake-up time of each dormancy period of the WIFI module can be set to be 3ms generally) to receive Beacon messages of the wireless router.
As an embodiment of the present application, according to IEEE 802.11 protocol, when the wireless routing device works, a Beacon message, that is, a Beacon message, is sent to the environment at regular time, so as to be used for sending the message to the wireless terminal device in the environment, which in this embodiment can be understood as mainly sending the message to the intelligent door lock terminal device, so as to inform the intelligent door lock terminal of the existence of the wireless network. The Beacon message generally includes information such as a service set identifier, an encryption mode, a Beacon message sending interval, and the like, where the sending interval of the Beacon message is generally set to 100ms. The Beacon message carries a DTIM (Delivery Traffic Indication Message, transmission indication information) which is a DTIM frame, where the DTIM is mainly used to indicate that a message of data buffered by the wireless routing device for the intelligent door lock terminal is about to be sent, so as to inform the intelligent door lock terminal that the message is ready to be received. The Beacon packet may identify a transmission time interval of the DTIM frame (i.e., a transmission period of the DTIM frame), for example, 3 Beacon packet bands (which may be set by a protocol) may be set at intervals for one DTIM, i.e., the transmission time interval of the DTIM frame is 3 Beacon packet transmission periods.
Under normal conditions, the wireless terminal equipment with the WIFI module calculates the arrival time of a DTIM frame during dormancy, and then wakes up for receiving in a synchronous mode; the transmission time interval of the DTIM frame cannot be set too long, otherwise, the wireless routing device will bear very large data buffering pressure (because other wireless terminals may exist besides the intelligent door lock terminal), which greatly reduces the transmission efficiency of the wireless routing device, so that the wireless terminal device with the WIFI module is started more frequently under normal conditions, and the power saving effect is general.
In this embodiment of the present application, after the intelligent door lock management server changes a normal data transmission manner and receives a remote control instruction of a user terminal, the remote control instruction may be cached on the intelligent door lock management server, and the wake-up time of a WIFI module of the intelligent door lock terminal in a sleep mode is calculated, and the remote control instruction is issued in a set time before the wake-up time, where the set time may be set to be shorter according to the calculation, so that the cache time of the remote control instruction on the wireless routing device is shorter, and the remote control instruction may be sent to the intelligent door lock terminal by the wireless routing device faster. Also, therefore, the sleep period of the WIFI module of the smart door lock terminal may be set to several times the transmission time interval of the DTIM frame. For example, when the transmission time interval of the DTIM frame is 3 Beacon packet transmission periods, that is, the transmission time interval of the DTIM frame is 300ms, the sleep period of the WIFI module of the smart door lock terminal may be set to be more than 100 times of the transmission time interval of the DTIM frame, that is, more than 30s, that is, the smart door lock management server wakes up for 3ms after the sleep is achieved at most to receive the DTIM frame, and at this time, since the smart door lock management server just transmits the remote control instruction to the wireless routing device for a short time, not only the energy saving effect is greatly improved, but also the probability of losing the remote control instruction is greatly reduced without being buffered too long on the wireless routing device.
Of course, the longer the sleep period of the processor of the intelligent door lock terminal and the WIFI module is set, the more obvious the energy-saving effect is, and the longer the corresponding wake-up time of the intelligent door lock terminal and the WIFI module is; the wake-up time is long, so that the user can feel the unlocking delay, the tolerance of the user to the delay of remote unlocking is higher than that of local unlocking for the intelligent door lock, in general, the unlocking delay is in the range of 9 s-15 s, and the user who unlocks remotely can feel a certain delay, but the intelligent door lock belongs to the tolerance range. Therefore, preferably, the sleep period of the WIFI module may be set within 9s to 15s, that is, when the transmission time interval of the DTIM frame is 300ms of the transmission period of the 3 Beacon messages, the sleep period of the WIFI module is equal to 30 to 50 times of the transmission time interval of the DTIM frame. Therefore, in the sleep mode, the processor and the WIFI module of the intelligent door lock terminal can wake up for a short time (generally set to 3ms or other time periods determined according to practical conditions without limitation) according to 9 s-15 s of each sleep, so that the energy-saving effect is greatly improved, and meanwhile, the user experience of remote unlocking can be basically met.
In the embodiment of the application, the intelligent door lock management server can calculate the accurate dormancy wakeup time of the WIFI module of the intelligent door lock terminal and send the related remote control instruction in a short time before the wakeup time; the WIFI module of the intelligent door lock terminal breaks through the conventional limitation of synchronous dormancy and awakening with the wireless routing equipment; the processor and the WIFI module of the intelligent door lock terminal can sleep with the sending time interval of the DTIM frame which is multiple times that of the wireless routing equipment as a sleep period, and the problems of losing a remote control instruction and increasing the burden of the wireless routing equipment are avoided; and unlocking delay caused by dormancy is within the acceptable range of users, so that user experience is considered under the condition of realizing high efficiency and energy saving.
Fig. 3 is a flowchart of an intelligent door lock control method according to a third embodiment of the present application, where the intelligent door lock control method is applied to the intelligent door lock management server 120 as follows:
step S301, historical door lock operation data of the intelligent door lock terminal are obtained;
step S302, calculating the occurrence probability of the door lock operation of the intelligent door lock terminal in different time periods in each day according to the historical door lock operation data, and solving the average value of the occurrence probability of the door lock operation in each time period;
Step S303, a first dormancy strategy is matched for a period when the average value of the occurrence probability of the door lock operation is higher than a preset probability, and a second dormancy strategy is matched for a period when the average value of the occurrence probability of the door lock operation is lower than the preset probability; the WIFI sleep period of the second sleep strategy is more than or equal to 2 times of the WIFI sleep period of the first sleep strategy;
and step S304, updating the matched dormancy strategy for the intelligent door lock terminal.
In one case of this embodiment, the historical door lock operation data mainly refers to data corresponding to a previous opening/closing operation of the intelligent door lock terminal, and may generally be selected for a period of time, for example, data of a previous month, a quarter, a half year or a year. The data content of the history door lock operation data generally includes a mode of opening/closing the lock (for example, a face recognition mode, a password input mode, a remote unlocking mode, etc.), a time corresponding to the opening/closing of the lock, and the like. The protocol configured by the intelligent door lock management server and the intelligent door lock terminal can prescribe that the intelligent door lock terminal periodically uploads historical door lock operation data with a certain time range, or can set uploading time or uploading frequency through the user terminal. After the historical door lock operation data are obtained, the intelligent door lock terminal can perform operations such as category classification, quantity statistics and calculation.
In one case of the present embodiment, in step S302, when dividing the period of one day, division may be performed in units of 1 hour and 2 hours, which is not particularly limited; after division, the door lock operation times of each period are respectively calculated to be the ratio to the door lock operation times of the same day, so as to obtain the occurrence probability of the door lock operation of each period of the same day. To achieve a better sleep policy match, the partitions may be made in units of 1 hour, and then the intelligent door lock management server calculates the probability of occurrence of door lock operation for each of 24 hours per day. Then, the same time period of different dates is subjected to tie-down to obtain a door lock operation occurrence probability average value of each time period, for example, the door lock operation occurrence probability corresponding to 1 point of each day in one quarter is subjected to average calculation to obtain the door lock operation occurrence probability average value of the time period of 1 point in the quarter; in this way, it is possible to continuously calculate the average value of the door lock operation occurrence probabilities for each period of 2 points, 3 points, 4 points, up to 24 points, and the like.
In one case of this embodiment, after comparing the calculated average value of the occurrence probability of the door lock operation with a preset probability, the sleep policy is matched for the corresponding period according to the comparison result. In one case, the preset probability may be set directly by the user terminal, for example, to 0.4, 0.5, 0.6, or other values. In one case, the preset probability may be preset by the system, and the correction is performed periodically after the intelligent door lock terminal is used. For example, the preset probability may be based on 0.5, and during the subsequent use process, the intelligent door lock management server may periodically obtain historical sleep data from the intelligent door lock terminal, if there is a period of time that is dormant under the set sleep policy, the frequency of the wake-up of the sleep policy by the door lock operation event or the remote control instruction is higher or lower than the average value of other periods of time that take the sleep policy by more than 30% (the amplitude may be preset), then the sleep policy of the period of time may be correspondingly up-regulated (the frequency is higher than the average value and is adjusted to the first sleep policy) or down-regulated (the frequency is lower than the average value and is adjusted to the second sleep policy), unless there is no up-regulated or down-regulated space (for example, the sleep policy is the first sleep policy, then no adjustment is performed, and the sleep policy is not down-regulated any more).
In one case of the present embodiment, at step 302, the working day and the rest day may be further separated to calculate respective door lock operation occurrence probabilities; and the average value of the door lock operation occurrence probability of each period corresponding to the working day and the rest day is respectively obtained. In step S303, the sleep policy may be further matched according to an average value of occurrence probabilities of the door lock operation for each period corresponding to the weekday and the holiday. Thus, more accurate sleep strategy arrangement can be realized by distinguishing working days from rest days.
In one case of this embodiment, the WIFI sleep period of the second sleep policy is greater than or equal to 2 times that of the first sleep policy, specifically, the second sleep policy is on a sleep implementation mechanism, and power-off modules are more and energy consumption is lower, and in addition, the sleep period is set longer than that of the first sleep policy, so that energy consumption is further reduced. Generally, the WIFI sleep period of the second sleep policy and the WIFI sleep period of the first sleep policy may be further increased to 10 times, even more than 20 times, and specifically configured according to practical situations. In addition, classification of sleep strategies can be further increased to realize richer sleep control. For example, the sleep period in the first sleep strategy and the second sleep strategy is divided into different time steps to form more sleep strategies, such as the first sleep strategy is divided into a third sleep strategy with a shorter period, a fourth sleep strategy with a longer period, the second sleep strategy is divided into a fifth sleep strategy with a shorter period and a sixth sleep strategy with a longer period, thus, the third sleep strategy can be adopted when the daytime is busy (the use frequency is higher than the set value of the user), the first, second or third sleep strategy can be adopted when the daytime is idle (the use frequency falls into the first set range of the user), and the fourth sleep strategy can be adopted when the nighttime is busy (the use frequency falls into the second set range of the user), and the nighttime is idle (the use frequency is lower than the set value of the user).
In the above embodiment, by dividing different time periods of a day and matching different sleep strategies according to the occurrence probability of the door lock operation in each time period, actually, different sleep strategies are matched according to the busy degree of the door lock in different time periods of a day, and for the time period when the average value of the occurrence probability of the door lock operation is higher than the preset probability, the door lock operation belongs to a relatively busy time period, so that the sleep strategy to be matched is the first sleep strategy, and the sleep period of the WIFI module in the mode is shorter than that in the deep sleep state, so as to adapt to the intelligent door lock terminal to wake up quickly and execute related operations in busy time. For the time period that the average value of the occurrence probability of the door lock operation is lower than the preset probability, the time period belongs to a relatively idle time period, so that a second dormancy strategy is matched with the time period, and the dormancy period of the WIFI module in the mode is longer than that of the normal dormancy mode, so that the energy-saving efficiency is improved as much as possible by sacrificing certain remote control awakening timeliness under the condition that the use frequency of the door lock is low; and the intelligent door lock terminal can wake up locally when in dormancy, so the second dormancy strategy does not influence the local use of the intelligent door lock terminal in emergency.
Fig. 4 is a flowchart of an intelligent door lock control method according to a fourth embodiment of the present application, specifically, the intelligent door lock control method includes a first sleep policy adjustment mechanism, where the first sleep policy adjustment mechanism includes the following steps:
step S401, receiving user scheduling data sent by a user terminal;
step S402, determining a sleep strategy of the intelligent door lock terminal according to the user routing data;
and step S403, updating the dormancy strategy for the intelligent door lock terminal.
In this embodiment, the user schedule data includes at least a user schedule type and a user schedule period corresponding to the user schedule type. The user travel types include business trip, working, travel, country departure and the like, and are not particularly limited; the user trip time period refers to a date interval or a hour interval corresponding to the user trip types.
In general, the intelligent door lock management server further stores a data set (which can be visually presented in the form of a table or a map) for recording the corresponding relation between the user travel type and the sleep policy; for example, a home break corresponds to a first dormancy strategy, a country exit corresponds to a second dormancy strategy, and so on. Therefore, as long as matching is performed on the data set according to the user scheduling data input by the user, a corresponding sleep policy can be obtained and then further updated to the intelligent door lock terminal. Of course, the first sleep strategy and the second sleep strategy can be further subdivided into a third sleep strategy, a fourth sleep strategy, a fifth sleep strategy and a sixth sleep strategy.
The sleep strategy adjustment mechanism provided by the embodiment can enable the sleep mode provided by the intelligent door lock control method to be more suitable for actual life scenes, and enable the intelligent door lock terminal to keep the optimal sleep strategy so as to simultaneously give consideration to energy conservation and smooth execution of remote control instructions.
Fig. 5 is a flowchart of an intelligent door lock control method according to a fifth embodiment of the present application, specifically, the intelligent door lock control method further includes a second sleep policy adjustment mechanism, where the second sleep policy adjustment mechanism has a higher priority than the first sleep policy adjustment mechanism, and the second sleep policy adjustment mechanism includes the following steps:
step S501, geographical position information corresponding to an associated user terminal and a security level corresponding to the associated user terminal are obtained;
step S502, if only user terminals with low security level exist in a preset geographic position area, configuring the intelligent door lock terminal as a first dormancy strategy;
in step S503, if at least one user terminal with a high security level exists in the preset geographical location area, the intelligent door lock terminal is configured as a second sleep policy.
In this embodiment, regarding the fourth embodiment, the security problem is mainly considered, and although the intelligent door lock terminal may be awakened locally in the sleep state, if only the child and the old who know the door lock operation portion in the home at a certain time, in order to quickly awaken the intelligent door lock terminal and open the door through the remote control instruction when an accident occurs (generally, the possibility is extremely low unless the accident occurs and the mobility or the perception is lost), the sleep policy with a shorter sleep period may be selected in this case. It can be understood that in this embodiment, only the sleep policy of the intelligent door lock terminal is configured, and the intelligent door lock terminal is not directly forced to enter the sleep state, but if the intelligent door lock terminal satisfies the condition of entering the sleep mode, if the condition exists as in steps S501 to S503, the notification can be performed to the intelligent door lock terminal at the wake-up time of a certain sleep period of the WIFI module of the intelligent door lock terminal, and the intelligent door lock terminal can confirm whether the sleep policy configured in the notification of the current sleep mode and the notification of the intelligent door lock management server is consistent according to the notification, if not, the current sleep mode is adjusted to be consistent.
The way provided in this example is to determine the current home or out-of-home situation by analyzing the actual geographic location of each user terminal. In step S501, the geographic location information (indicating the real-time geographic location) of the user terminal may be obtained by the positioning function of the user terminal, and positioning may be implemented by a GPS global positioning system. The security level corresponding to the user terminal is that the user associates each user terminal with the intelligent door lock management server in advance, and sets the security level of each user terminal (at least including a high security level and a low security level), generally sets the user terminal of an adult with complete behavior to be a high security level, and sets the user terminal used by a user with weak behavior (old or child) or inconvenient actions due to other reasons to be a low security level.
In one case of this embodiment, the geographic location information of the intelligent door lock terminal itself may be determined by a positioning module configured by itself, or may be determined by a temporary positioning module when the door lock is installed, and uploaded to the intelligent door lock management server for storage. The preset geographical location area is generally set to be a certain range from the intelligent door lock terminal, for example, a range of 50m centered on the intelligent door lock terminal, and the range can be specifically set according to the area extension range of the room corresponding to the door lock, or set by the user.
In general, a user terminal may periodically upload a geographic location area to an intelligent door lock management server; preferably, the geographical location information is uploaded only when the user terminal is located within a predetermined geographical location area, typically once at the beginning of the predetermined geographical location area upon entry. And uploading corresponding notification information leaving the preset geographical position area when the user terminal leaves the area. In steps S502 and S503, a sleep policy matching mechanism is performed for the intelligent door lock management server according to the relationship between each user terminal and the preset geographical location area. Taking a preset geographical location area as a user residence, a high security level corresponding to an adult user and a low security level corresponding to an old person/child as an example, in step S502, when only the old person and/or the child is at home, the sleep mode of the intelligent door lock terminal is forcedly configured into a first sleep strategy with faster sleep and wake-up, so that remote unlocking is convenient to realize. Step S502 is a case where a second sleep strategy that is more energy-efficient can be adopted in the sleep mode whenever a large person is at home, regardless of whether there are old people and/or small children at home, because in this case the door can be opened by means of local unlocking.
Fig. 6 is a flowchart of a smart door lock control method provided in a sixth embodiment of the present application, which is applied to a smart door lock terminal 110, where the smart door lock terminal includes a WIFI module, and the smart door lock control method includes:
step S601, when the idle state duration of the intelligent door lock terminal exceeds a preset duration, sending dormancy notification information to an intelligent door lock management server, and starting a dormancy mode until a wakeup event occurs; the sleep notification information comprises sleep starting time and sleep period of a WIFI module of the intelligent door lock terminal, and is used for determining subsequent wake-up time of the WIFI module when the intelligent door lock management server receives a remote control instruction sent by the user terminal, so that the intelligent door lock management server can send the remote control instruction within a set time before the subsequent wake-up time of the WIFI module;
step S602, during the sleep mode, the WIFI module performs periodic sleep and wake-up according to a sleep period configured by a preset sleep policy; the preset dormancy strategy is updated by the intelligent door lock management server to the intelligent door lock terminal;
step S603, during the wake-up period of the WIFI module, if a remote control instruction issued by the intelligent door lock management server is received, the intelligent door lock terminal ends the sleep mode, and receives and executes the remote control instruction.
The intelligent door lock terminal is provided with a WIFI module, and when the duration of the intelligent door lock terminal in an idle state exceeds a preset duration, the intelligent door lock terminal starts a sleep mode until a wake-up event occurs; in the sleep mode, the WIFI module performs periodic sleep and wake-up according to a sleep period configured by a preset sleep strategy, and if a remote control instruction issued by the intelligent door lock management server is received during wake-up, the intelligent door lock terminal ends the sleep mode and receives and executes the remote control instruction.
In this embodiment, the wake-up event refers to interaction information, activity/task arrangement, and execution requirements triggered by peripheral devices of the intelligent door lock terminal, a communication module, and the like, so that the intelligent door lock terminal wakes up to perform task execution activities preset by a program. For example, a door opening request input by a user through a peripheral device; specifically, for example, when a user inputs data through a password keyboard, a password unlocking event is generated, and then the intelligent door lock terminal is awakened and needs to be analyzed and processed according to a program preset rule. For another example, the user sends a remote control command, i.e. a remote control event, through the user terminal, which wakes up the intelligent door lock terminal and makes a reaction preset by the program rule to the remote control command. In addition, the wake-up event may also be a data update task initiated by the intelligent door lock management server.
In this embodiment, the intelligent door lock terminal being in an idle state means that no related task is currently to be executed, neither the external device nor the communication module triggers any door lock activity request/task execution request, if the state duration exceeds a set duration, such as 30 seconds, 1 minute, 2 minutes, etc., the set duration is not specifically limited, and the set duration can be preset by a system factory, or a user can manually set on the user terminal according to an actual use condition.
In this embodiment, before dormancy, the intelligent door lock terminal uploads a dormancy notification message, where the dormancy notification message includes a dormancy start time and a dormancy period of the WIFI module of the intelligent door lock terminal, and the intelligent door lock management server may read and store the dormancy notification message according to a preset communication protocol, and may mark the state of the intelligent door lock terminal as "dormancy".
In this embodiment, the sleep period of the WIFI module of the smart door lock terminal may be long or short, when the sleep period of the WIFI module is long, downlink data of the smart management server often needs to be cached on the wireless routing device for a long time to wait for wakeup of the WIFI module, which not only increases the cache pressure of the wireless routing device, but also causes a data loss condition when the cache time is too long, thereby causing loss of a remote control instruction and failure of remote unlocking. In this embodiment, if the intelligent door lock management server receives the remote control instruction sent by the user terminal, if the intelligent door lock terminal is marked as in the sleep state, the intelligent door lock management server does not immediately issue the remote control instruction, but calculates the subsequent wake-up time of the WIFI module, and selects a suitable issue opportunity (generally, the next wake-up time after the current time) according to the wake-up time, so that data can be timely sent to the intelligent door lock terminal through the wireless routing device, thereby not only reducing the buffering burden of the wireless routing device, but also reducing the risk of losing the remote control instruction.
In one case of this embodiment, after the sleep start time and the sleep period of the WIFI module are obtained, the subsequent wake-up time of the WIFI module from the current time can be easily obtained, so that a remote control instruction can be sent to the intelligent door lock terminal within a set time before the wake-up time of the WIFI module. The setting time generally needs to consider the related delay time, and the subsequent wake-up time of the WIFI module is corrected on the basis of the setting time, so that a proper remote control instruction sending time can be obtained, the remote control instruction can be received in time when the subsequent wake-up time of the WIFI module (the next wake-up time of the current time generally) is convenient, the remote control instruction is prevented from being cached to the next wake-up time of the WIFI module, if the sleep period of the WIFI module is longer, the method of the embodiment can effectively avoid the loss of the remote control instruction, further avoid the starting of a retransmission mechanism, reduce the waste of system resources, and avoid the lengthening of the interval from the instruction sending to the execution of the remote control instruction.
The delay time can consider delay data such as transmission delay, system delay, software delay, algorithm delay and the like generated in the downlink data transmission process, then the subsequent wake-up time of the WIFI module is corrected according to the delay data to obtain the time for issuing the remote control instruction, the correction effect of the time for issuing the remote control instruction is required to be satisfied, the remote control instruction can reach the wireless routing equipment before the wake-up time of the WIFI module of the intelligent door lock terminal, and the preparation time for data forwarding is reserved for the wireless routing equipment, so that the remote control instruction can be received immediately when the WIFI module wakes up.
In one case of the present embodiment, the delay time is generally a statistically significant average time due to various errors of the system.
Through the above embodiment of the application, when the intelligent door lock terminal sleeps, the user terminal sends the remote control instruction, and then the intelligent door lock management server determines an accurate and instant remote control instruction sending time according to the sleep condition of the WIFI module, so that the instruction can be immediately received by the intelligent door lock terminal to wake up the intelligent door lock terminal and execute the remote control instruction. The sleep mode of the embodiment improves the energy consumption problem of the intelligent door lock with the WIFI module, and meanwhile, the remote control can be smoothly realized. In addition, under the condition that the sleep period of the WIFI module is longer, the intelligent door lock management server determines the instruction issuing time according to the wake-up time in the sleep period of the WIFI module of the intelligent door lock terminal, so that the remote control instruction can be timely accepted, the probability of losing the remote control instruction is reduced, and the network resources of the system are saved.
As a seventh embodiment of the present application, the intelligent door lock terminal communicates with the intelligent door lock management server through an associated wireless routing device; the preset dormancy strategy at least comprises the following steps: a first sleep policy and a second sleep policy;
When the intelligent door lock terminal is configured to be in the first dormancy strategy, the processor and the peripheral of the intelligent door lock terminal are suspended to run and enter dormancy, and the WIFI module enters dormancy; setting an external interrupt interface capable of being triggered locally as a monitoring state; meanwhile, when a processor of the intelligent door lock terminal is dormant, the processor is awakened at regular time through an external real-time clock, and then the WIFI module is awakened synchronously; the sleep period of the processor of the intelligent door lock terminal and the WIFI module is set to be N (N > 2) times of the sending time interval of the DTIM frame in the Beacon message of the wireless routing equipment.
As a preferred embodiment of the present application, when the intelligent door lock terminal is configured as the first sleep policy, the locally triggerable external interrupt interface may monitor wake events, such as activities of the peripheral or activities of special wake keys (applicable to the case of complete shutdown of other functional peripheral), so as to wake the intelligent door lock terminal in time when the peripheral is triggered. When the processor of the intelligent door lock terminal pauses, the WIFI Modem circuit of the WIFI module is synchronously closed to save electricity, meanwhile, the processor of the intelligent door lock terminal wakes up through an external real-time clock RTC at fixed time, and then synchronously starts the WIFI Modem circuit, so that the WIFI module wakes up for a short time (namely, the wake-up duration of each sleep period of the WIFI module can be generally set to be 3 ms) to receive the Beacon message of the wireless routing device.
In this embodiment, the processor of the intelligent door lock terminal does not respond to the signal from the peripheral interface and the terminal in the suspended state; and setting an external interrupt interface to monitor the activity of the peripheral so as to wake up the intelligent door lock terminal in time when the peripheral is triggered. Specifically, an external interrupt interface EXTI (Extern Interrupt) may be set to monitor a level signal of a GPIO (General-purpose input/output interface) port connected to the peripheral device; if the peripheral is triggered, an external interrupt can be generated to the intelligent door lock terminal through the GPIO port, so that the local wake-up of the intelligent door lock terminal is realized.
As another preferred embodiment of the present application, when the intelligent door lock terminal is configured as the second sleep policy, peripheral devices of the intelligent door lock terminal suspend operation, a processor and a WIFI module of the intelligent door lock terminal are powered off and sleep, and an external reset interface that can be triggered locally is set to be in a listening state; the processor of the intelligent door lock terminal wakes up at regular time through an external real-time clock when in sleep, so as to wake up the WIFI module; the sleep period of the processor of the intelligent door lock terminal and the WIFI module is set to be N (N > 2) times of the sending time interval of the DTIM frame in the Beacon message of the wireless routing equipment.
In this embodiment, whether the peripheral or a special wake-up key (applicable to the situation that the peripheral with other functions is completely shut down) is triggered can be monitored through the external reset interface, so as to realize the local wake-up of the intelligent door lock terminal. Before entering into dormancy, the intelligent door lock terminal is set to a monitoring mode through an external reset interface so as to monitor a wake-up event, the intelligent door lock terminal can be used for local wake-up, and when an external reset interface trigger signal is sent, a processor of the intelligent door lock terminal is awakened in a reset mode. It can be appreciated that under the second sleep strategy, the processor and the WIFI module of the intelligent door lock terminal directly stop running in a power-off mode, so that energy can be saved compared with the first sleep strategy. When the wireless router is dormant, a real-time clock RTC of the intelligent door lock terminal is in a working state, the real-time clock RTC can wake up a processor of the intelligent door lock terminal periodically, the processor of the intelligent door lock terminal further controls the WIFI module to be opened, so that the WIFI module wakes up for a short time (namely, the wake-up time of each dormancy period of the WIFI module can be set to be 3ms generally) to receive Beacon messages of the wireless router.
As an embodiment of the present application, according to IEEE 802.11 protocol, when the wireless routing device works, a Beacon message, that is, a Beacon message, is sent to the environment at regular time, so as to be used for sending the message to the wireless terminal device in the environment, which in this embodiment can be understood as mainly sending the message to the intelligent door lock terminal device, so as to inform the intelligent door lock terminal of the existence of the wireless network. The Beacon message generally includes information such as a service set identifier, an encryption mode, a Beacon message sending interval, and the like, where the sending interval of the Beacon message is generally set to 100ms. The Beacon message carries a DTIM (Delivery Traffic Indication Message, transmission indication information) which is a DTIM frame, where the DTIM is mainly used to indicate that a message of data buffered by the wireless routing device for the intelligent door lock terminal is about to be sent, so as to inform the intelligent door lock terminal that the message is ready to be received. The Beacon packet may identify a transmission time interval of the DTIM frame (i.e., a transmission period of the DTIM frame), for example, 3 Beacon packet bands (which may be set by a protocol) may be set at intervals for one DTIM, i.e., the transmission time interval of the DTIM frame is 3 Beacon packet transmission periods.
Under normal conditions, the wireless terminal equipment with the WIFI module calculates the arrival time of a DTIM frame during dormancy, and then wakes up for receiving in a synchronous mode; the transmission time interval of the DTIM frame cannot be set too long, otherwise, the wireless routing device will bear very large data buffering pressure (because other wireless terminals may exist besides the intelligent door lock terminal), which greatly reduces the transmission efficiency of the wireless routing device, so that the wireless terminal device with the WIFI module is started more frequently under normal conditions, and the power saving effect is general.
In this embodiment of the present application, after the intelligent door lock management server changes a normal data transmission manner and receives a remote control instruction of a user terminal, the remote control instruction may be cached on the intelligent door lock management server, and the wake-up time of a WIFI module of the intelligent door lock terminal in a sleep mode is calculated, and the remote control instruction is issued in a set time before the wake-up time, where the set time may be set to be shorter according to the calculation, so that the cache time of the remote control instruction on the wireless routing device is shorter, and the remote control instruction may be sent to the intelligent door lock terminal by the wireless routing device faster. Also, therefore, the sleep period of the WIFI module of the smart door lock terminal may be set to several times the transmission time interval of the DTIM frame. For example, when the transmission time interval of the DTIM frame is 3 Beacon packet transmission periods, that is, the transmission time interval of the DTIM frame is 300ms, the sleep period of the WIFI module of the smart door lock terminal may be set to be more than 100 times of the transmission time interval of the DTIM frame, that is, more than 30s, that is, the smart door lock management server wakes up for 3ms after the sleep is achieved at most to receive the DTIM frame, and at this time, since the smart door lock management server just transmits the remote control instruction to the wireless routing device for a short time, not only the energy saving effect is greatly improved, but also the probability of losing the remote control instruction is greatly reduced without being buffered too long on the wireless routing device.
Of course, the longer the sleep period of the processor of the intelligent door lock terminal and the WIFI module is set, the more obvious the energy-saving effect is, and the longer the corresponding wake-up time of the intelligent door lock terminal and the WIFI module is; the wake-up time is long, so that the user can feel the unlocking delay, the tolerance of the user to the delay of remote unlocking is higher than that of local unlocking for the intelligent door lock, in general, the unlocking delay is in the range of 9 s-15 s, and the user who unlocks remotely can feel a certain delay, but the intelligent door lock belongs to the tolerance range. Therefore, preferably, the sleep period of the WIFI module may be set within 9s to 15s, that is, when the transmission time interval of the DTIM frame is 300ms of the transmission period of the 3 Beacon messages, the sleep period of the WIFI module is equal to 30 to 50 times of the transmission time interval of the DTIM frame. Therefore, in the sleep mode, the processor and the WIFI module of the intelligent door lock terminal can wake up for a short time (generally set to 3ms or other time periods determined according to practical conditions without limitation) according to 9 s-15 s of each sleep, so that the energy-saving effect is greatly improved, and meanwhile, the user experience of remote unlocking can be basically met.
In the embodiment of the application, the intelligent door lock management server can calculate the accurate dormancy wakeup time of the WIFI module of the intelligent door lock terminal and send the related remote control instruction in a short time before the wakeup time; the WIFI module of the intelligent door lock terminal breaks through the conventional limitation of synchronous dormancy and awakening with the wireless routing equipment; the processor and the WIFI module of the intelligent door lock terminal can sleep with the sending time interval of the DTIM frame which is multiple times that of the wireless routing equipment as a sleep period, and the problems of losing a remote control instruction and increasing the burden of the wireless routing equipment are avoided; and unlocking delay caused by dormancy is within the acceptable range of users, so that user experience is considered under the condition of realizing high efficiency and energy saving.
FIG. 7 illustrates an internal block diagram of a computer device in one embodiment. The computer device may specifically be the intelligent door lock management server 120 in fig. 1, or may be the intelligent door lock terminal 110. As shown in fig. 7, the computer device includes a processor, a memory, a network interface, an input device, and a display screen (display screen may be optional) connected by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system, and may also store a computer program that, when executed by the processor, causes the processor to implement the intelligent door lock control method. The internal memory may also store a computer program that, when executed by the processor, causes the processor to perform the intelligent door lock control method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components. For example, when the computer device is an intelligent door lock management server, it is a server type computer device, and the components of the server type computer should be configured; and when it is a smart door lock terminal, it may also include various peripherals as described in the specific embodiments of the implementation environment.
In one embodiment, a computer device is provided, where the computer device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the intelligent door lock control method provided in any one of the first to seventh embodiments when the computer program is executed.
In one embodiment, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to perform: the steps of the intelligent door lock control method provided in any one of the first to seventh embodiments.
It will be appreciated by those of ordinary skill in the art that implementing all or part of the processes of the methods of the embodiments described above may be accomplished by computer programs, which may be stored on a non-transitory computer readable storage medium, and which when executed may include processes of embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance. It will also be understood that, although the terms "first," "second," etc. may be used in this document to describe various elements in some embodiments of the present application, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first table may be named a second table, and similarly, a second table may be named a first table without departing from the scope of the various described embodiments. The first table and the second table are both tables, but they are not the same table.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of 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.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (5)

1. An intelligent door lock control method is characterized by being applied to an intelligent door lock management server, and comprises the following steps:
if sleep notification information sent by an intelligent door lock terminal is received, acquiring sleep starting time and sleep period of a WIFI module of the intelligent door lock terminal from the sleep notification information;
if a remote control instruction sent by a user terminal is received under the condition that the intelligent door lock terminal is in a sleep mode, determining the subsequent wake-up time of a WIFI module according to the sleep start time and the sleep period of the WIFI module of the intelligent door lock terminal;
issuing the remote control instruction to the intelligent door lock terminal in a set time before the subsequent wake-up time of the WIFI module;
the intelligent door lock terminal is provided with a WIFI module, and when the duration of the intelligent door lock terminal in an idle state exceeds a preset duration, the intelligent door lock terminal starts a sleep mode until a wake-up event occurs; in the sleep mode, the WIFI module performs periodic sleep and wake-up according to a sleep period configured by a preset sleep strategy, and if a remote control instruction issued by the intelligent door lock management server is received during wake-up, the intelligent door lock terminal ends the sleep mode and receives and executes the remote control instruction;
The intelligent door lock terminal is communicated with the intelligent door lock management server through the associated wireless routing equipment;
the preset dormancy strategy at least comprises the following steps: a first sleep policy and a second sleep policy;
when the intelligent door lock terminal is configured to be in the first dormancy strategy, the processor and the peripheral of the intelligent door lock terminal are suspended to run and enter dormancy, and the WIFI module enters dormancy; setting an external interrupt interface capable of being triggered locally as a monitoring state; meanwhile, when a processor of the intelligent door lock terminal is dormant, the processor is awakened at regular time through an external real-time clock, and then the WIFI module is awakened synchronously; the sleep period of the processor of the intelligent door lock terminal and the WIFI module is set to be N times of the transmission time interval of the DTIM frame in the Beacon message of the wireless routing equipment, wherein N is more than 2;
when the intelligent door lock terminal is configured to be in the second sleep strategy, the peripheral of the intelligent door lock terminal pauses operation, the processor and the WIFI module of the intelligent door lock terminal are powered off and sleep, and an external reset interface which can be triggered locally is set to be in a monitoring state; the processor of the intelligent door lock terminal wakes up at regular time through an external real-time clock when in sleep, so as to wake up the WIFI module; the sleep period of the processor of the intelligent door lock terminal and the WIFI module is set to be N times of the transmission time interval of the DTIM frame in the Beacon message of the wireless routing equipment, wherein N is more than 2;
The intelligent door lock control method further comprises the following steps:
acquiring historical door lock operation data of the intelligent door lock terminal;
calculating the occurrence probability of the door lock operation of the intelligent door lock terminal in different time periods in each day according to the historical door lock operation data, and solving the average value of the occurrence probability of the door lock operation in each time period;
matching a first dormancy strategy for a period when the average value of the occurrence probability of the door lock operation is higher than a preset probability, and matching a second dormancy strategy for a period when the average value of the occurrence probability of the door lock operation is lower than the preset probability; the WIFI sleep period of the second sleep strategy is more than or equal to 2 times of the WIFI sleep period of the first sleep strategy;
and updating the matched dormancy strategy for the intelligent door lock terminal.
2. The intelligent door lock control method according to claim 1, wherein the intelligent door lock control method includes a first sleep policy adjustment mechanism, the first sleep policy adjustment mechanism including the steps of:
receiving user scheduling data sent by a user terminal;
determining a sleep strategy of the intelligent door lock terminal according to the user routing data;
and updating the dormancy strategy for the intelligent door lock terminal.
3. The intelligent door lock control method according to claim 2, further comprising a second sleep policy adjustment mechanism having a higher priority than the first sleep policy adjustment mechanism, the second sleep policy adjustment mechanism comprising the steps of:
obtaining geographic position information corresponding to an associated user terminal and a security level corresponding to the associated user terminal;
if only user terminals with low security level exist in the preset geographic position area, configuring the intelligent door lock terminal as a first dormancy strategy;
and if at least one user terminal with a high security level exists in the preset geographic position area, configuring the intelligent door lock terminal as a second dormancy strategy.
4. A computer device comprising a memory, a processor, the memory having stored thereon a computer program executable on the processor, when executing the computer program, implementing the steps of a smart door lock control method as claimed in any one of claims 1 to 3.
5. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of a smart door lock control method as claimed in any one of claims 1 to 3.
CN202311337912.3A 2023-10-17 2023-10-17 Intelligent door lock control method, computer equipment and readable storage medium Active CN117079372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311337912.3A CN117079372B (en) 2023-10-17 2023-10-17 Intelligent door lock control method, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311337912.3A CN117079372B (en) 2023-10-17 2023-10-17 Intelligent door lock control method, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN117079372A CN117079372A (en) 2023-11-17
CN117079372B true CN117079372B (en) 2024-01-12

Family

ID=88715609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311337912.3A Active CN117079372B (en) 2023-10-17 2023-10-17 Intelligent door lock control method, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117079372B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200742344A (en) * 2006-04-25 2007-11-01 Mediatek Inc Method for controlling a station and station using the same
CN101236611A (en) * 2007-02-02 2008-08-06 成都西谷曙光数字技术有限公司 Intelligent electronic label system
CN101496437A (en) * 2006-08-01 2009-07-29 高通股份有限公司 Dynamic warm-up time for a wireless device in idle mode
CN103581450A (en) * 2012-07-25 2014-02-12 中兴通讯股份有限公司 Energy saving method and device
CN107027161A (en) * 2016-01-29 2017-08-08 华为技术有限公司 The method of data transfer, access point and website in a kind of WLAN
CN109587646A (en) * 2017-09-29 2019-04-05 镇江巨星数字科技有限公司 Data communication dynamic sensing implementation method
CN111179478A (en) * 2020-02-24 2020-05-19 德施曼机电(中国)有限公司 Intelligent lock control method, intelligent lock and control system thereof
CN111638704A (en) * 2020-06-03 2020-09-08 上海蔚来汽车有限公司 Method, system and device for remotely waking up vehicle
GB202102411D0 (en) * 2021-02-19 2021-04-07 Canon Kk Provision period management for ensuring a low latency service in a bss
CN113038578A (en) * 2017-04-19 2021-06-25 华为技术有限公司 Site awakening method and site

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200742344A (en) * 2006-04-25 2007-11-01 Mediatek Inc Method for controlling a station and station using the same
CN101496437A (en) * 2006-08-01 2009-07-29 高通股份有限公司 Dynamic warm-up time for a wireless device in idle mode
CN101236611A (en) * 2007-02-02 2008-08-06 成都西谷曙光数字技术有限公司 Intelligent electronic label system
CN103581450A (en) * 2012-07-25 2014-02-12 中兴通讯股份有限公司 Energy saving method and device
CN107027161A (en) * 2016-01-29 2017-08-08 华为技术有限公司 The method of data transfer, access point and website in a kind of WLAN
CN113038578A (en) * 2017-04-19 2021-06-25 华为技术有限公司 Site awakening method and site
CN109587646A (en) * 2017-09-29 2019-04-05 镇江巨星数字科技有限公司 Data communication dynamic sensing implementation method
CN111179478A (en) * 2020-02-24 2020-05-19 德施曼机电(中国)有限公司 Intelligent lock control method, intelligent lock and control system thereof
CN111638704A (en) * 2020-06-03 2020-09-08 上海蔚来汽车有限公司 Method, system and device for remotely waking up vehicle
GB202102411D0 (en) * 2021-02-19 2021-04-07 Canon Kk Provision period management for ensuring a low latency service in a bss

Also Published As

Publication number Publication date
CN117079372A (en) 2023-11-17

Similar Documents

Publication Publication Date Title
JP3954980B2 (en) Method and system for dynamically determining pause cycle values in a stationary moving vehicle
TWI689220B (en) Pretreatment method and device
WO2020224658A1 (en) Standby optimization method and apparatus, and computer device and storage medium
CA2404843C (en) Method and system for communicating with a quiescent mobile vehicle
CN112530056B (en) Method for reducing power consumption of intelligent door lock, intelligent door lock and storage medium
KR20090023658A (en) Network terminal with a low duty cycle
WO2019227730A1 (en) Charging reminding method and device, computer device and storage medium
US10433270B1 (en) Synchronization for battery powered IoT networks
KR20160027981A (en) Method for sending heartbeat message and mobile terminal
US20190087696A1 (en) Online occupancy state estimation
CN109429313B (en) Information interaction method, functional equipment, terminal, server and storage medium
US20120064899A1 (en) Method and Apparatus for Providing a Dynamic Paging Period
CN106484075A (en) Method and device for adjusting application program wake-up time
CN117079372B (en) Intelligent door lock control method, computer equipment and readable storage medium
CN103024150A (en) Method for awakening voice assistant
CN114114993A (en) Vehicle control method, server, vehicle and vehicle system
CN110475321A (en) The economize on electricity optimization method and device of wireless local area network AP
CN110572868A (en) Method and device for reducing power consumption of electronic device
CN107125888A (en) Intelligent luggage carrier and its control method
CN106412254A (en) Method and apparatus for pushing information by using alarm clock in intelligent terminal
CN108646909B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN109218968B (en) Staff positioning method and system
CN107145063B (en) A kind of low-power consumption calibration method for indoor and outdoor principal and subordinate's clock satellite time service system
TW201921991A (en) Optimized data synchronization
CN109151965B (en) Staff positioning method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant